Neatly Positioned Magazines

    @stryberventures/stryber-rn-core-components-jailbreak-detector
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.1 • Public • Published

    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 react-native-jailbreak@0.0.1 @stryberventures/stryber-rn-core-components-jailbreak-detector@0.0.1 --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;
    }

    Keywords

    none

    Install

    npm i @stryberventures/stryber-rn-core-components-jailbreak-detector

    DownloadsWeekly Downloads

    7

    Version

    0.0.1

    License

    none

    Unpacked Size

    12 kB

    Total Files

    8

    Last publish

    Collaborators

    • davidlahoz
    • davidpaez
    • jhuebner
    • vladstryber
    • sychevskiy
    • so1ua
    • pavel.stryber
    • aliku