-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Hi,
How can i implement stack navigator in SceneMap instead of passing the component name.
In SceneMap it only accepts the react component not the stack navigator which is causing this.props.navigation undefined in nested component.
like i want to pass it in similar way.
const HomeNavigator = createStackNavigator(
{
Home: HomeScreen,
Details: DetailsScreen
},
{
initialRouteName: "Home"
}
);
_renderScene = SceneMap({
'1': HomeNavigator,
'2': Screen2,
'3': Screen3,
'4': Screen4,
'5': Screen5,
'6': Screen6
});
It only accepts the react class component not the StackNavigator.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels