Skip to content

[Bug]: TypeError: Cannot read properties of undefined (reading 'toString') Jest, Testing Library and BottomSheetFlatList #1997

@lucianolopezz

Description

@lucianolopezz

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

iOS

What happened?

I created a input select componente with bottom sheet modal, Something like this:

image

but, when I try run test with jest and testing library, I'm receiving following error:
TypeError: Cannot read properties of undefined (reading 'toString')

image

"react-native": "0.75.4",
"@gorhom/bottom-sheet": "^5.0.4",
"react-native-gesture-handler": "^2.19.0",
"react-native-reanimated": "^3.15.0"

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions