ctavan / uuid-example-react-native

See https://github.com/uuidjs/uuid#react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uuid example React Native

yarn
npx pod-install

// For iOS:
yarn run ios

// Or for Android:
yarn run android

This example was created with the following steps:

  1. Create new React Native App:

    npx react-native init reactnative
    cd reactnative
    
  2. Install uuid and crypto.getRandomValues() Polyfill:

    yarn add uuid react-native-get-random-values
    npx pod-install
    
  3. Add the polyfill as first import in index.js:

    import 'react-native-get-random-values';
  4. Make use of uuid in App.js.

About

See https://github.com/uuidjs/uuid#react-native


Languages

Language:Java 34.5%Language:JavaScript 33.3%Language:Objective-C 24.6%Language:Ruby 4.3%Language:Starlark 3.3%