MCPcopy Create free account
hub / github.com/OneSignal/react-native-onesignal / isNativeModuleLoaded

Function isNativeModuleLoaded

src/helpers.ts:9–19  ·  view source on GitHub ↗
(module: object | null | undefined)

Source from the content-addressed store, hash-verified

7}
8
9export function isNativeModuleLoaded(module: object | null | undefined): boolean {
10 if (module == null) {
11 console.error(
12 'Could not load RNOneSignal native module. Make sure native dependencies are properly linked.',
13 );
14
15 return false;
16 }
17
18 return true;
19}
20
21/**
22 * Returns true if the value is a JSON-serializable object.

Callers 15

initializeFunction · 0.90
loginFunction · 0.90
logoutFunction · 0.90
setConsentRequiredFunction · 0.90
setConsentGivenFunction · 0.90
setLogLevelFunction · 0.90
setAlertLevelFunction · 0.90
enterFunction · 0.90
exitFunction · 0.90
setPushToStartTokenFunction · 0.90
removePushToStartTokenFunction · 0.90
setupDefaultFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected