Skip to content

Commit c65a0f3

Browse files
authored
1 parent ac1b3af commit c65a0f3

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For the creation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDs
1212
- Node 8, 10, 12, 14
1313
- Chrome, Safari, Firefox, Edge, IE 11 browsers
1414
- Webpack and rollup.js module bundlers
15-
- [React Native](#react-native)
15+
- [React Native / Expo](#react-native-expo)
1616
- **Secure** - Cryptographically-strong random values
1717
- **Small** - Zero-dependency, small footprint, plays nice with "tree shaking" packagers
1818
- **CLI** - Includes the [`uuid` command line](#command-line) utility
@@ -405,7 +405,7 @@ Methods for the other algorithms ([`uuidv1()`](#uuidv1options-buffer-offset), [`
405405

406406
This error occurs in environments where the standard [`crypto.getRandomValues()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) API is not supported. This issue can be resolved by adding an appropriate polyfill:
407407

408-
### React Native
408+
### React Native / Expo
409409

410410
1. Install [`react-native-get-random-values`](https://github.com/LinusU/react-native-get-random-values#readme)
411411
1. Import it _before_ `uuid`. Since `uuid` might also appear as a transitive dependency of some other imports it's safest to just import `react-native-get-random-values` as the very first thing in your entry point:
@@ -415,6 +415,8 @@ import 'react-native-get-random-values';
415415
import { v4 as uuidv4 } from 'uuid';
416416
```
417417

418+
Note: If you are using Expo, you must be using at least `[email protected]` and `[email protected]`.
419+
418420
### Web Workers / Service Workers (Edge <= 18)
419421

420422
[In Edge <= 18, Web Crypto is not supported in Web Workers or Service Workers](https://caniuse.com/#feat=cryptography) and we are not aware of a polyfill (let us know if you find one, please).

README_js.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ For the creation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDs
2424
- Node 8, 10, 12, 14
2525
- Chrome, Safari, Firefox, Edge, IE 11 browsers
2626
- Webpack and rollup.js module bundlers
27-
- [React Native](#react-native)
27+
- [React Native / Expo](#react-native-expo)
2828
- **Secure** - Cryptographically-strong random values
2929
- **Small** - Zero-dependency, small footprint, plays nice with "tree shaking" packagers
3030
- **CLI** - Includes the [`uuid` command line](#command-line) utility
@@ -411,7 +411,7 @@ Methods for the other algorithms ([`uuidv1()`](#uuidv1options-buffer-offset), [`
411411

412412
This error occurs in environments where the standard [`crypto.getRandomValues()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) API is not supported. This issue can be resolved by adding an appropriate polyfill:
413413

414-
### React Native
414+
### React Native / Expo
415415

416416
1. Install [`react-native-get-random-values`](https://github.com/LinusU/react-native-get-random-values#readme)
417417
1. Import it _before_ `uuid`. Since `uuid` might also appear as a transitive dependency of some other imports it's safest to just import `react-native-get-random-values` as the very first thing in your entry point:
@@ -421,6 +421,8 @@ import 'react-native-get-random-values';
421421
import { v4 as uuidv4 } from 'uuid';
422422
```
423423

424+
Note: If you are using Expo, you must be using at least `[email protected]` and `[email protected]`.
425+
424426
### Web Workers / Service Workers (Edge <= 18)
425427

426428
[In Edge <= 18, Web Crypto is not supported in Web Workers or Service Workers](https://caniuse.com/#feat=cryptography) and we are not aware of a polyfill (let us know if you find one, please).

0 commit comments

Comments
 (0)