yarnfor iOS:
npx pod-installTo run the app use:
yarn iosor
yarn android- Remove current
exampleproject - Create a project named
exampleusing react-native-better-template - Revert
README.mdso you can see this guide - In
tsconfig.jsonadd
"baseUrl": ".",
"paths": {
"react-native-module-template": ["../src"]
},- Check the difference in
metro.config.jsand combine all - Revert
App.tsx - Check the difference in
settings.gradleand combine all - Check the difference in
android/app/build.gradleand combine all - Check the difference in
MainApplication.ktand combine all - Open new
exampleproject in Xcode, right click on theLibrariesfolder, select "Add Files to". Navigate to the library root,iosfolder, selectRNModuleTemplateModule.xcodeproj. Deselect "Copy items if needed", click add. Go to theBuild Phasesof theexampletarget, "Link Binary with Libraries", click +, search for thelibRNModuleTemplateModule.a, click add.