You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't find any documentation about testing. How can I test this library? We have components where we use navigationRef.isReady(), navigationRef.dispatch() and StackActions.push(). When I use navigationRef in NavigationContainer in test environment it throws error saying Warning: Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: an object with keys {isReady, dispatch}.. Testing only react-navigation stuff seems to work without problem e.g navigation.push().
The text was updated successfully, but these errors were encountered:
I couldn't find any documentation about testing. How can I test this library? We have components where we use navigationRef.isReady(), navigationRef.dispatch() and StackActions.push(). When I use navigationRef in NavigationContainer in test environment it throws error saying
Warning: Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: an object with keys {isReady, dispatch}.
. Testing only react-navigation stuff seems to work without problem e.g navigation.push().The text was updated successfully, but these errors were encountered: