Added Back Button Functionality#6
Added Back Button Functionality#6Vigneshpillai19 wants to merge 3 commits intovikrantnegi:masterfrom
Conversation
|
Thanks for the PR. I'll test it out before merging. |
|
Okay Thanks |
|
Have you checked my Code? |
src/index.js
Outdated
| animationStyle: {}, | ||
| speed: 1, | ||
| loop: true, | ||
| backButtonPress: () => Backhandler.exitApp(), |
There was a problem hiding this comment.
'Backhandler' is not defined
Typo error.
| animationType={animationType} | ||
| supportedOrientations={['portrait']} | ||
| onRequestClose={() => {}} | ||
| onRequestClose={backButtonPress} |
There was a problem hiding this comment.
'backButtonPress' is not defined.
There was a problem hiding this comment.
backButtonPress is defined
|
Please check the comments I've made. and update the PR. Also, make sure the code works properly on both iOS and Android. It doesn't seems to working properly. Thanks. |
|
Thanks for Checking my Code and informing me about the mistake. Thank You for giving your time in checking my Code. |
Default behaviour of Back button will be exiting the App and User can pass his own function as a prop for custom behaviour of the component.