

git clone cd react-native-uuid-generator/example npm install ExampleĬheck out the example app included in the github repo to see the UUID Generator in action! I assume you already have the react-native-cli installed, as well as the required iOS or Android dependencies. See the changelog for instructions on upgrading to the latest version.

Insert the following lines inside the dependencies block in android/app/adle:Ĭompile project(':react-native-uuid-generator') Upgrading.Include ':react-native-uuid-generator' project(':react-native-uuid-generator').projectDir = new File(rootProject.projectDir, './node_modules/react-native-uuid-generator/android') Append the following lines to android/adle:.Add new RNUUIDGeneratorPackage() to the list returned by the getPackages() method.Add import io. to the imports at the top of the file.Add libRNUUIDGenerator.a to your project's Build Phases ➜ Link Binary With Libraries In XCode, in the project navigator, select your project.Go to node_modules ➜ react-native-uuid-generator and add RNUUIDGenerator.xcodeproj.

