UNPKG

react-native-nitro-modules

Version:

Fast, type-safe native modules for React Native with statically compiled JSI bindings.

17 lines (14 loc) 387 B
import { Platform } from 'react-native' export const NitroModules = new Proxy( {}, { get: () => { throw new Error( `Native NitroModules are not available on ${Platform.OS}! Make sure you're not calling getNativeNitroModules() in a ${Platform.OS} (.${Platform.OS}.ts) environment.` ) }, } ) export function isRuntimeAlive(): boolean { return false }