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

Navigation crashing on Android with 1.0.0-beta.16 #2863

Closed
theohdv opened this issue Nov 1, 2017 · 2 comments
Closed

Navigation crashing on Android with 1.0.0-beta.16 #2863

theohdv opened this issue Nov 1, 2017 · 2 comments
Labels

Comments

@theohdv
Copy link

theohdv commented Nov 1, 2017

Current Behavior

My navigation structure look like this:

root (stackNavigator):
-> screen 1
-> screen 2
-> screen 3
-> screen 4 (drawerNavigator):
--------->screen 5 (stackNavigator):
-----------------> screen 6
-----------------> screen 7

The bug is when i try to do a reset navigation action from my screen 3 to my screen 4 (Only on Android).
This is the code i used to reset:

this.setState({ load_modal_open: false }, () => {                                                                                 		
        const resetAction = NavigationActions.reset({
			index: 0,
			actions: [
				NavigationActions.navigate({
						routeName: "screen 4",
				})
			]
	});
	this.props.navigation.dispatch(resetAction);
});

I get this error:

screenshot_1509534439

Expected Behavior

No error using react-navigation 1.0.0-beta.15.
It should reset to my screen 4.

Your Environment

software version
react-navigation 1.0.0-beta.16
react-native 0.48.4
node 8.7.0
npm or yarn 5.5.1
@kelset kelset added the bug label Nov 1, 2017
@kelset
Copy link

kelset commented Nov 1, 2017

Probably related to #2853. Can you trying pointing at master to see if the commit we already pushed fixes your issue?
We'll release a new update soon, hold tight until then.

@theohdv
Copy link
Author

theohdv commented Nov 1, 2017

Yes master fixes it, thanks for your reactivity!

@theohdv theohdv closed this as completed Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants