Skip to content

Commit

Permalink
docs: be explicit about react native import order
Browse files Browse the repository at this point in the history
Fixes #514
  • Loading branch information
ctavan committed Sep 12, 2020
1 parent 538b1a1 commit 42d92f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ This error occurs in environments where the standard [`crypto.getRandomValues()`
### React Native

1. Install [`react-native-get-random-values`](https://github.com/LinusU/react-native-get-random-values#readme)
1. Import it before `uuid`:
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:

```javascript
import 'react-native-get-random-values';
Expand Down
2 changes: 1 addition & 1 deletion README_js.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ This error occurs in environments where the standard [`crypto.getRandomValues()`
### React Native

1. Install [`react-native-get-random-values`](https://github.com/LinusU/react-native-get-random-values#readme)
1. Import it before `uuid`:
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:

```javascript
import 'react-native-get-random-values';
Expand Down

1 comment on commit 42d92f7

@chinomnsoawazie
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making this change.

Please sign in to comment.