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

Strange behavior in back button and drawer after focus and unfocus the textinput in Example App #2817

Closed
HessiPard opened this issue Jan 20, 2018 · 2 comments

Comments

@HessiPard
Copy link

HessiPard commented Jan 20, 2018

Version

Tell us which versions you are using:

Test has been Done in Example app.

Expected behaviour

After tapping android back button app must goes to tabbar page with drawer open.

Actual behaviour

After tapping android back button app goes to new tabbar page with drawer close, again if you tap android back button you will go to register page again.

Steps to reproduce

  1. Clone and run-android example App
  2. Add new Component <TextInput></TextInput> in TabView.js render function.
  3. Add another Button in DrawerContent.js for navigate to register page from drawer<Button onPress={Actions.register}>go to register</Button>
  4. now reload app and GO TO TABBAR PAGE
  5. focus and unfocus/blur the TextInput (in my case i dont type anything)
  6. open drawer and go to register page
  7. Tap on hardware back button in android ( not the one that is provided in the register page)
  8. app goes to new Tabbar page with drawer closed, then if you tap back again you will go to register page again.
  9. Tap on android back button and you will go to tabbar page AGAIN!!!!
@barghi
Copy link

barghi commented Jan 23, 2018

  • 1
    same issue here
    behavior of android back button is strange
    but default back button works fine

@HessiPard
Copy link
Author

I fixed the issue just by calling Actions.drawerClose() before Actions.register!

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

2 participants