react-native-uuidis a zero-dependency TypeScript implementation of RFC4122 standard A Universally Unique IDentifier (UUID) URN Namespace. Please note, this library uses pseudo random generator based on top of
Math.random. New version with hardware support is WIP.
Heavily inspired by:
Huge thanks to Randy Coulman for the early version of a code.
Getting startedUse this steps to install and create UUIDs. Example projec is available here
npm install react-native-uuid
- Create a UUID
import uuid from 'react-native-uuid'; uuid.v4(); // ⇨ '11edc52b-2918-4d71-9058-f7285e29d894'
DocumentationMethods documentation is available here
TroubleshootingPrevious version has been based on
randombytesthat is not compatible with react-native out of the box. Please submit an issue if you found a bug.
react-native-uuid for enterpriseAvailable as part of the Tidelift Subscription.
The maintainers of react-native-uuid and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. Learn more.
SponsorshipThank you to our sponsors:
Copyright (c) 2016-2021 Eugene Hauptmann