Installation can be done through npm
:
npm i react-native-uuid-keychain --save
用于获取app的唯一标示
import { NativeModules } from 'react-native';
NativeModules.RNGetUUID_KeyChain.getUDIDKeyChain('Bundle Identifier', (uuid) => {
// service code
});
// log: '9DA26F9B-5111-4CC5-BEF5-607573836C45'.