1.0.5 • Published 1 year ago
react-native-disable-android-back v1.0.5
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...
}