Skip to content

Commit

Permalink
Fix isIosDeviceCompatible condition (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Undermaken authored Sep 20, 2021
1 parent 295c3cb commit 21cca07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NativeEventEmitter, NativeModules, Platform } from "react-native";

const NativeCie = Platform.OS === "ios" ? NativeModules.CieModule : NativeModules.NativeCieModule;

const isIosDeviceCompatible = NativeCie && Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 13;
const isIosDeviceCompatible = NativeCie !== null && Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 13;

class CieManager {
constructor() {
Expand Down

0 comments on commit 21cca07

Please sign in to comment.