Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to use origin react-navigation Stack or Tab navigator? #2954

Closed
syq7970 opened this issue Mar 21, 2018 · 1 comment
Closed

Comments

@syq7970
Copy link

syq7970 commented Mar 21, 2018

I have some old components build by react-navigation, its all export a navigator like:
const MyNavigator = StackNavigator({ Login: { screen: LoginScreen }, Logout: { screen: LogoutScreen } });

After use react-native-router-flux, I don't want refactor all my navigation, so if there is a way combine react-native-router-flux with react-navigation, it will be same my life:
<Router backAndroidHandler={this.onBackPress()}> <Stack> < MyNavigator /> </Stack> <Tab> < MyNavigator1 /> ... MyNavigator234 </Tab> </Router>

@syq7970
Copy link
Author

syq7970 commented Mar 22, 2018

I found a workaround.
Just render StackNavigator in a SceneComponent.

@syq7970 syq7970 closed this as completed Mar 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant