react-native-disable-android-back
v1.0.5
Published
A custom hook that disables the Android back button in React Native when a screen is focused
Downloads
4
Maintainers
Readme
React Native Disable Android Back Button
A custom hook that disables the Android back button in React Native when a screen is focused.
Installation
To install the package, run:
npm install --save react-native-disable-android-back
Usage
To use the hook, simply import it into your component and call it:
import useDisableAndroidBackButton from "react-native-disable-android-back";
function MyScreen() {
useDisableAndroidBackButton();
// rest of your component code...
}