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

How to avoid opening the page two times #3091

Closed
nfq6612 opened this issue Jun 20, 2018 · 5 comments
Closed

How to avoid opening the page two times #3091

nfq6612 opened this issue Jun 20, 2018 · 5 comments

Comments

@nfq6612
Copy link

nfq6612 commented Jun 20, 2018

  • react-native-router-flux v4.

Expected behaviour

How to avoid opening the page two times

@nfq6612
Copy link
Author

nfq6612 commented Jun 20, 2018

When I double click ,the page opening two times.
onclick=()=>{ Actions.push('login'); }

@MaxInMoon
Copy link
Contributor

@nfq6612 I'm thinking about something like this:

onPress={() => {
  const currentScene = Actions.currentScene;
  if (currentScene !== 'login') {
    Actions.push('login');
  }
}}

@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

Please check latest beta.40, it should solve this issue

@aksonov aksonov closed this as completed Aug 8, 2018
@react-native-engineer
Copy link

no, this issue is happening yet

@Kuhne1
Copy link

Kuhne1 commented Jun 28, 2019

The problem exists on 4.0.6, Downgraded to 4.0.1 and the double click issue is gone.

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

5 participants