This is simple WebView application using React Native.
Cd to project path and run:
«npx react-native run-ios»
OR
- Open /iOS/ReactNativeWebView.xcworkspace in Xcode or run
«xed -b iOS»
- Hit the Run button
Add the following lines to your $HOME/.bash_profile or $HOME/.bashrc (if you are using zsh then ~/.zprofile or ~/.zshrc) config file:
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
Please make sure you use the correct Android SDK path. You can find the actual location of the SDK in the Android Studio «Preferences» dialog, under Appearance & Behavior → System Settings → Android SDK.
- Have an Android emulator running (quickest way to get started), or a device connected.
- cd to your project path
- run:
«npx react-native run-android»
In /android folder
./gradlew assembleRelease
Renamed the project subfolder from:
android/app/src/main/java/MY/APP/OLD_ID/
to:
android/app/src/main/java/MY/APP/NEW_ID/
In android/app/src/main/java/MY/APP/NEW_ID/MainActivity.java:
package MY.APP.NEW_ID;
In android/app/src/main/java/MY/APP/NEW_ID/MainApplication.java:
package MY.APP.NEW_ID;
In android/app/src/main/AndroidManifest.xml:
package="MY.APP.NEW_ID"
In android/app/build.gradle:
applicationId "MY.APP.NEW_ID"
And in android/app/BUCK:
android_build_config(
package="MY.APP.NEW_ID"
)
android_resource(
package="MY.APP.NEW_ID"
)
Gradle cleaning in the end (in /android folder):
`./gradlew clean`
In android/app/src/main/res/values/strings.xml:
<string name="app_name">MY_APP_NEW_NAME</string>
See offical tutorial for the latest up-to-date instructions.