INNER CODE UNIT · TypeScript
nativeCallSyncHook
margelo/react-native-bignumber · src/NativeBigNumber/NativeBigNumber.ts:169
function nativeCallSyncHook(): unknown;
var __BigNumberProxy: object | undefined;
}
// Check if the constructor exists. If not, try installing the JSI bindings.
if (global.__BigNumberProxy == null) {
// Get the native BigNumber ReactModule
const BigNumberModule = NativeModules.BigNumber;
if (BigNumberModule == null) {
let message =
'Failed to install react-native-bignumber: The native `BigNumber` Module could not be found.';
message +=
'\n* Make sure react-native-bignumber is correctly autolinked (run `npx react-native config` to verify)';
if (Platform.OS === 'ios' || Platform.OS === 'macos') {
message += '\n* Make sure you ran `pod install` in the ios/ directory.';
}
if (Platform.OS === 'android') {
message += '\n* Make sure gradle is synced.';