UNPKG

amazon-cognito-identity-js

Version:

Amazon Cognito Identity Provider JavaScript SDK

13 lines (11 loc) 411 B
import { NativeModules } from 'react-native'; const getRandomBase64 = NativeModules.ExpoRandom ? NativeModules.ExpoRandom.getRandomBase64String : NativeModules.RNAWSCognito ? NativeModules.RNAWSCognito.getRandomBase64 : () => { throw new Error( 'Could not find a native getRandomBase64 implementation. Validate that amazon-cognito-identity-js is linked.' ); }; export default getRandomBase64;