Skip to content

Commit

Permalink
Merge pull request #113 from GantMan/error-when-missing-jailmonkey
Browse files Browse the repository at this point in the history
Warn when missing jailmonkey
  • Loading branch information
levibuzolic authored Oct 27, 2021
2 parents 8ce7130 + 6b7696f commit 13691af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jailmonkey.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { NativeModules, Platform } from "react-native";

const { JailMonkey } = NativeModules;

if (JailMonkey == null) console.warn("JailMonkey is not available, check your native dependencies have linked correctly and ensure your app has been rebuilt");

export default {
jailBrokenMessage: () => JailMonkey.jailBrokenMessage || "",
isJailBroken: () => JailMonkey.isJailBroken || false,
Expand Down

0 comments on commit 13691af

Please sign in to comment.