react-native-animated-loader
react-native-animated-loader copied to clipboard
Added Back Button Functionality
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.
Thanks for the PR. I'll test it out before merging.
Okay Thanks
Have you checked my Code? Is it working properly?
@Vigneshpillai19
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. There was a small spelling mistake in BackHandler function name which I Corrected now. This functionality of exiting App will work for Android only as BackHandler works for only Android and for IOS we have to install (react-native-exit-app) module and add it in gradle file so for IOS I have not added any default behaviour. Both Android and IOS users can pass customised function as a prop (backButtonPress) which will get executed on pressing the back button. So I guess this can work on both the Platforms but default behaviour of exiting App will work only on Android.
Thank You for giving your time in checking my Code.