What is the recommended way to test navigation in a React Native app using React Navigation?
-
A
Mock the entire navigation library
-
B
Wrap the component with NavigationContainer in tests
-
C
Use Detox exclusively for all navigation tests
-
D
Test navigation by checking URL changes