npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

react-native-unique-id

2.0.0 • Public • Published

react-native-unique-id

generates a guid and stores it in the async store This is supposed to identify the device / user. It creates a guid if no exists and stores it in the AsyncStorage. If a Guid exists, this will be returned

npm Package npm Package travis-ci.org js-standard-style license

Usage

npm install react-native-unique-id --save
const uniqueId = require("react-native-unique-id");
 
uniqueId()
  .then(id => console.log(id))
  .catch(error => console.error(error));
 
// or callback style
 
uniqueId((error, id) => {
  if (error) return console.error(error);
  console.log(id);
});

Twitter URL GitHub stars

install

npm i react-native-unique-id

Downloadsweekly downloads

247

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability