-
Notifications
You must be signed in to change notification settings - Fork 103
-
Hi,
I have an app that I am building that requires bottom tabs. I want to use this library as it provides native UI and feel. One issue stopping me from doing that is that I can't seem to be able to interact with the bottom tabs from a jest test setup with @testing-library/react-native.
You can see a guide here from react navigation showing how to do that for the bottom tabs provided by react-navigation. Attempting to something like that with this library is not possible as the rendered react tree has nothing to be interacted with to trigger navigation actions.
This makes it hard to adopt this library into codebases that value tests and validation. I am hoping for a solution
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
Seems to support testing: https://callstackincubator.github.io/react-native-bottom-tabs/docs/guides/usage-with-react-navigation.html#tabbarbuttontestid
Checking it
Beta Was this translation helpful? Give feedback.
All reactions
-
Couldnt make it work immediately: #400
Beta Was this translation helpful? Give feedback.