react-native-animated-loader icon indicating copy to clipboard operation
react-native-animated-loader copied to clipboard

Added Back Button Functionality

Open Vigneshpillai19 opened this issue 5 years ago • 5 comments

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.

Vigneshpillai19 avatar Jun 30 '20 08:06 Vigneshpillai19

Thanks for the PR. I'll test it out before merging.

vikrantnegi avatar Jun 30 '20 10:06 vikrantnegi

Okay Thanks

Vigneshpillai19 avatar Jun 30 '20 20:06 Vigneshpillai19

Have you checked my Code? Is it working properly?

Vigneshpillai19 avatar Jul 09 '20 16:07 Vigneshpillai19

@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.

vikrantnegi avatar Jul 13 '20 05:07 vikrantnegi

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.

Vigneshpillai19 avatar Jul 13 '20 12:07 Vigneshpillai19