@stryberventures/stryber-rn-core-components-jailbreak-detector
v0.0.1
Published
## Description ##
Downloads
2
Keywords
Readme
Stryber React Native JailBreakDetector
Description
React Native Component which prevents content to be rendered if device was jailbroken (iOS) or rooted (Android). Jailbreak/root detection is based on "react-native-jailbreak" package.
Installation
Install dependencies
npm i [email protected] @stryberventures/[email protected] --save
Usage
import JailBreakDetector from '@stryberventures/stryber-rn-core-components-jailbreak-detector';
//...
const usuallyAppRootComponent = () => {
return (
<JailBreakDetector>
<ApplicationContent/>
</JailBreakDetector>
);
}
JailBreakDetector props
interface IJailBreakDetectorProps {
children: React.ReactNode;
disableNotification?: boolean;
notificationTitle?: string;
notificationMessage?: string;
onDetected?: () => void;
}