A minimalist React Native template for a quick start with Kotlin/JS.
- Init with the template
npx react-native init MyApp --template https://github.com/cyfung/ReactNativeKotlinJsTemplate- Enter the App folder
cd Mypp - Build the JS with kotlin
./gradlew copyDevelopment. Orgradlew copyDevelopmentif on Windows - Enter the react folder
cd react - Run
yarn installto install all the javascript dependencies. - (optional) Init react-native-windows
npx react-native-windows-init --overwriteUpdate the JS with one of the following gradle tasks in the App folder
copyDevelopment
copyProduction
cleanCopyDevelopment
cleanCopyProductionThe postfix indicates whether it is for development or production
Tasks with prefix clean will delete the react/generated folder before copying
Depending on your platform, use of the following commands in the react folder to start react-native
npx react-native run-android
npx react-native run-ios
npx react-native run-windowsYou may run the gradle tasks with -t on a separate windows for continuous build, e.g.
gradlew -t copyDevelopment