Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [IOBP-502] Disable swipe back while payment outcome showed (#5434)
## Short description This PR disables the swipe-back on iOS devices and the Android hardware back button when the payment outcome screen is shown. ## List of changes proposed in this pull request - In the payment outcome screen has been added the custom hook `useAvoidHardwareBackButton` in order to disable the Android back button; - In the payment outcome screen has added a hook that disables the gestures both on the current navigation and the parent navigation (This is a workaround that can be solved by introducing react-navigation v6) ## How to test If you complete a new payment flow until you reach the outcome screen, you shouldn't be able to return to the previous screen. --------- Co-authored-by: Martino Cesari Tomba <[email protected]>
- Loading branch information