-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 quit Android App?I used BackHandler #2383
Comments
You seem to call startsWith method on something that is undefined. I don't think backHandler is responsible for this error. Could you check if error is not occuring elsewhere ? |
You can try to override BackHandler from react native in root component `componentDidMount(){ componentWillUnmount(){ |
I'm add the code in the |
@ynsgnr I was in the Example |
this library has solved my issue |
Version
Tell us which versions you are using:
Expected behaviour
Exit App
Actual behaviour
Use BackHandler after crashing
Steps to reproduce
2.Error:
Cannot read property 'startsWith' of undefined
The text was updated successfully, but these errors were encountered: