Skip to content

A minimalist React Native template for a quick start with Kotlin/JS.

License

Notifications You must be signed in to change notification settings

cyfung/ReactNativeKotlinJsTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReactNativeKotlinJsTemplate

GitHub

A minimalist React Native template for a quick start with Kotlin/JS.

Setup

  1. Init with the template
npx react-native init MyApp --template https://github.com/cyfung/ReactNativeKotlinJsTemplate
  1. Enter the App folder cd Mypp
  2. Build the JS with kotlin ./gradlew copyDevelopment. Or gradlew copyDevelopment if on Windows
  3. Enter the react folder cd react
  4. Run yarn install to install all the javascript dependencies.
  5. (optional) Init react-native-windows
npx  react-native-windows-init --overwrite

Build

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

Run

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

Continuous Build

You may run the gradle tasks with -t on a separate windows for continuous build, e.g.

gradlew -t copyDevelopment

About

A minimalist React Native template for a quick start with Kotlin/JS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published