Skip to content

Latest commit

 

History

History
 
 

README.md

example

Getting Started

yarn

for iOS:

npx pod-install

To run the app use:

yarn ios

or

yarn android

Updating project

  1. Remove current example project
  2. Create a project named example using react-native-better-template
  3. Revert README.md so you can see this guide
  4. In tsconfig.json add
"baseUrl": ".",
"paths": {
  "react-native-module-template": ["../src"]
},
  1. Check the difference in metro.config.js and combine all
  2. Revert App.tsx
  3. Check the difference in settings.gradle and combine all
  4. Check the difference in android/app/build.gradle and combine all
  5. Check the difference in MainApplication.kt and combine all
  6. Open new example project in Xcode, right click on the Libraries folder, select "Add Files to". Navigate to the library root, ios folder, select RNModuleTemplateModule.xcodeproj. Deselect "Copy items if needed", click add. Go to the Build Phases of the example target, "Link Binary with Libraries", click +, search for the libRNModuleTemplateModule.a, click add.