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

Actions.key not working with onPress - Android #2890

Closed
martinshhh opened this issue Feb 19, 2018 · 1 comment
Closed

Actions.key not working with onPress - Android #2890

martinshhh opened this issue Feb 19, 2018 · 1 comment
Labels
for stack overflow Better suited for Stack Overflow

Comments

@martinshhh
Copy link

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.27
  • react-native v0.50.0

Expected behaviour

<TouchableOpacity onPress={ Actions.getLogin } >
or
<TouchableOpacity onPress={ () => Actions.getLogin() } >
should navigate to getLogin screen

Actual behaviour

  • onPress={Actions.getLogin} or onPress={() => Actions.getLogin() } does not navigate to getLogin screen.
  • It works fine in IOS but in Android it doesn't.
  • if I call Actions.getLogin() outside of onPress the app launches fine with the getLogin() screen.
  • It's only happening in Android
@Blapi
Copy link
Collaborator

Blapi commented Feb 19, 2018

It's definitely on your side, you must have done something wrong in your own implementation.
Actions.key works fine on Android.

@Blapi Blapi closed this as completed Feb 19, 2018
@Blapi Blapi added the for stack overflow Better suited for Stack Overflow label Feb 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for stack overflow Better suited for Stack Overflow
Projects
None yet
Development

No branches or pull requests

2 participants