UNPKG

rn-local-authentication

Version:
14 lines (9 loc) 377 B
import { NativeModules } from 'react-native'; import { LocalAuthenticationNativeModule, } from './types'; const LocalAuthentication: LocalAuthenticationNativeModule = NativeModules.RNLocalAuthentication; if (!LocalAuthentication) { throw new Error('bebnev/rn-local-authentication: NativeModule.RNLocalAuthentication is null'); } export default LocalAuthentication;