Skip to content

Repository files navigation

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 Packagenpm Packagetravis-ci.orgjs-standard-stylelicense

Usage

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

Twitter URLGitHub stars

About

generates a guid and stores it in the async store

Resources

Stars

19 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages