Verify app integrity and device security! This package wraps RootBeer and IOSSecuritySuite for use in React Native.
npm install @sleiv/react-native-app-security
or
yarn add @sleiv/react-native-app-security
import { AppSecurity } from '@sleiv/react-native-app-security';
// root check
const isRooted = await AppSecurity.isDeviceRooted();
// debug check
const isDebugEnabled = await AppSecurity.isDebugEnabled();
// fingerprint check (android only)
const fingerprints = ['...']
const isIncorrectFingerprint = await AppSecurity.isIncorrectFingerprint(fingerprints)
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
- RootBeer: Licensed under Apache 2.0 License.
- IOSSecuritySuite: Licensed under BSD 2-Clause License.
Made with create-react-native-library