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.
This project requires you to have latest version of Android-Studio & Android-SDK configured on your machine.
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
.
Apache 2.0. See the LICENSE file for details.