There are 2 StackNavigator objects with few screens inside a TabNavigator. How to pass props from App.js -> TabNavigator -> each StackNavigator -> screen?
Code below generates errors, saying that only one router can be rendered.
const SettingsStack = createStackNavigator({
Settings: {screen: props => <SettingsScreen {...props} screenProps={{is_authenticated: props.is_authenticated}}/> },
Profile: {screen: ProfileScreen},
});
const MainTabNavigator = createBottomTabNavigator({
SettingsStack: {screen: props => <SettingsStack {...props} screenProps={{is_authenticated: props.is_authenticated}}/>},
})