From 42d92f7d2635b6d6b55c9c6f81702e3b1931c196 Mon Sep 17 00:00:00 2001 From: Christoph Tavan Date: Sat, 12 Sep 2020 13:54:50 +0200 Subject: [PATCH] docs: be explicit about react native import order Fixes #514 --- README.md | 2 +- README_js.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ecf9a20e..6a023798 100644 --- a/README.md +++ b/README.md @@ -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'; diff --git a/README_js.md b/README_js.md index df2b1e50..2762aac7 100644 --- a/README_js.md +++ b/README_js.md @@ -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';