yarn
npx pod-install
// For iOS:
yarn run ios
// Or for Android:
yarn run android
This example was created with the following steps:
-
Create new React Native App:
npx react-native init reactnative cd reactnative
-
Install uuid and
crypto.getRandomValues()
Polyfill:yarn add uuid react-native-get-random-values npx pod-install
-
Add the polyfill as first import in index.js:
import 'react-native-get-random-values';
-
Make use of
uuid
in App.js.