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 copyDevelopment
if on Windows - Enter the react folder
cd react
- Run
yarn install
to install all the javascript dependencies. - (optional) Init react-native-windows
npx react-native-windows-init --overwrite
Update the JS with one of the following gradle tasks in the App folder
copyDevelopment
copyProduction
cleanCopyDevelopment
cleanCopyProduction
The 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-windows
You may run the gradle tasks with -t
on a separate windows for continuous build, e.g.
gradlew -t copyDevelopment