adwardstark / reactive-kt-example

An example template to setup and build react-native app with support for native-code using kotlin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reactive-KT-Example

This is an example project to setup and build react-native app with support for native-code using kotlin. You can use this project as a reference to setup native-library written in Kotlin and consume it in react-native using a react-plugin.

Prerequisites


This project requires you to have latest version of Android-Studio & Android-SDK configured on your machine.

How to


To try this project, clone this repository and follow the steps mentioned below:

  • Step 1. Install dependencies
    # Install root-level dependencies
    npm install
    # Install plugin dependencies
    cd react-plugin
    npm install
    cd ..
  • Step 2. Start Metro-Bundler ( In a separate terminal )
    npx react-native start
  • Step 3. Run the app
    npx react-native run-android

To open this project in Android-Studio go to Open an Existing Project > Select android folder of this repository > Open.

License


Apache 2.0. See the LICENSE file for details.

About

An example template to setup and build react-native app with support for native-code using kotlin.

License:Apache License 2.0


Languages

Language:Java 49.2%Language:Kotlin 19.7%Language:JavaScript 16.1%Language:Starlark 15.0%