We need to change the example so users register the navigation container inside the onReady prop. React Navigation V5 does not actually set the ref on mount if linking is enabled, will need to move the registerNavigationContainer call to onReady as per react-navigation/react-navigation#8445 (comment).
Also, the functional component examples should be using useRef and not createRef.
Location:
https://docs.sentry.io/platforms/react-native/performance/included-instrumentation/#react-navigation-v5
We need to change the example so users register the navigation container inside the
onReadyprop. React Navigation V5 does not actually set the ref on mount if linking is enabled, will need to move the registerNavigationContainer call toonReadyas per react-navigation/react-navigation#8445 (comment).Also, the functional component examples should be using
useRefand notcreateRef.Location:
https://docs.sentry.io/platforms/react-native/performance/included-instrumentation/#react-navigation-v5