react-native-unique-identifier
v1.0.6
Published
Unique identifier based on iCloud for iOS, and google email name for Android
Downloads
12
Maintainers
Readme
Installation
yarn add react-native-unique-identifier
Expo
Update app.json
"plugins": [["react-native-unique-identifier/plugin"]]
Bare react native
- Open project in XCode
- Signing & Capabilities
- Click "+ Capability" button
- Search and select iCloud (now you should see a new capability in "Signing & Capabilities" list)
- Check CloudKit checkbox in services
- Add app bundle name using "+" button in Containers
Usage
| Function | Response | Platform | Description |
| :-------- | :------- | :------- | :------- |
| getiCloudRecord
| Promise<string>
| iOS | iCloud record |
| getGoogleAccountName
| Promise<string>
| Android| google email name |