react-native-module-boilerplate
-
Fork project
-
You need to rename (react-native-module-boilerplate) scripts:
.travis/before-cache.sh
scripts/copy-from-node-modules.sh
scripts/local-ci.sh
scripts/post-link-android.sh
scripts/pre-link.sh
package.json
-
Android part
android/src/main/java/com/gettipsi/boilerplate
=>android/src/main/java/com/%YOUR_COMPANY%/%YOUR_MODULE_NAME%
android/src/main/java/com/gettipsi/boilerplate/RNBoilerplateModule.java
android/src/main/java/com/gettipsi/boilerplate/RNBoilerplateReactPackage.java
android/src/main/AndroidManifest.xml
-
src
foldersrc/*.js
-
example
folderpackage.json
index.ios.js
index.android.js
android/app/build.gradle
android/settings.gradle
-
iOS part
open ios/RNModule.xcodeproj
- Rename project in Xcode, also accept Xcode suggest
- Rename Component or Module files, it depends from your react-native-component type
- Close Xcode
npm install
cd example && npm install
- on example folder
open ios/example.xcodeproj
- Remove
RNModule.xcodeproj
from Libraries - Add new library