Closed chriswickham closed 1 year ago
@chriswickham
Which plugin version are you using, can u please use the latest 2.22 and see if you still have an issue?
As we previously fixed some bugs related to navigation ref
I saw u r on 2.22 which is the latest one
In general, we don't modify the navigation ref in any way. We scan that object to create a screen identifier for analytics.
That happens onStateChange
. So it's hard to say from a first glance where we could miss it.
Do you have any other analytics tools that u use ?
@MikePendo the issues persists when there are no props specified for the NavigationContainer, including the ref. Have you attempted to mimic the structure of my code sample? It could be an issue with nested navigators.
I've tried adding console.logs/alerts but I haven't seen anything untoward.
@chriswickham So I tried to replicate it with even more complex structure. Which was like that: StackNavigatorA -> DrawerNavigator-> TabNavigator -> (one of the tabs has Stack NavigatorB) -> StackNavigatorB and then from StackNavigatorB I called a screen from StackNavigatorA. I tried with ref and without the ref prop and didnt see any thing special.
Let me try some other options, (I will create a sample project to replicate your exact issue )
@MikePendo I replicated the issue using your demo project as well, just navigating from a Bottom Tab Navigator to a Stack Navigator, and I'm not experiencing the issue with the versions of RN and React Navigation used there.
@MikePendo the issue is in our codebase - we have a faulty wrapper component around the main navigator. Apologies for the inconvenience!
Platform + Version e.g IOS 15.6.1, Android 13
SDK Version RN 0.71.6, React Navigation 6, Pendo 2.22.0 "@react-navigation/bottom-tabs": "^6.5.8", "@react-navigation/material-top-tabs": "^6.6.3", "@react-navigation/native": "^6.1.7", "@react-navigation/stack": "^6.3.17",
Framework React Native using React Navigation
Describe the bug In my app, whenever navigation.navigate() is called to navigate to a screen in a different stack to the current one, the app displays a black screen temporarily and then reloads to the default screen. I can only successfully navigate to other screens in the same stack.
To Reproduce Steps to reproduce the behavior:
Expected behavior The app navigates to the intended screen.
Logs No relevant logs are created.
Sample Code
RootNavigator.tsx
MainNavigator.tsx
Part of LearnScreen (Stack.TABS), used inside BottomTabNavigator:
Additional context navigation.navigate() still works using just
NavigationContainer
with the rest of the Pendo code.