Skip to content

Integration with stackNavigator #4

@phonegap20

Description

@phonegap20

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions