Here is the current structure of the navigators
-Stack navigator
- Splash
- Login
- Home (Drawer Navigator)
- Users (Stack Navigator)
- Users List
- User Detail ( this screen contains the screen products list of a user)
- Products (Stack Navigator)
- Products List
- Product Details
I am able to navigate from user detail screen to product detail screen as described by the docs. Nested navigation
navigation.navigate('Products', { screen: 'Product Details' });
But doing this replaces the initialRouteName which was products list at first with product details and it will be shown as the first screen when navigating to products forever. So after that the initial route will be product details. What am I doing wrong?