import { nanoid } from 'nanoid/non-secure' ; import { NativeModules } from 'react-native' ; export const getUUID = ( ) : string => { if ( __DEV__ ) { return nanoid ( ) ; } return NativeModules . AnalyticsReactNative . getUUIDSync ( ) ; } ;