Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adwardstark/reactive-kt-example
An example template to setup and build react-native app with support for native-code using kotlin.
https://github.com/adwardstark/reactive-kt-example
android android-library kotlin-android kotlin-library react-native react-native-plugin
Last synced: 12 days ago
JSON representation
An example template to setup and build react-native app with support for native-code using kotlin.
- Host: GitHub
- URL: https://github.com/adwardstark/reactive-kt-example
- Owner: adwardstark
- License: apache-2.0
- Created: 2021-05-20T08:34:59.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-20T09:21:42.000Z (over 3 years ago)
- Last Synced: 2024-03-24T13:36:05.603Z (8 months ago)
- Topics: android, android-library, kotlin-android, kotlin-library, react-native, react-native-plugin
- Language: Java
- Homepage:
- Size: 140 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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](https://developer.android.com/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
```bash
# Install root-level dependencies
npm install
# Install plugin dependencies
cd react-plugin
npm install
cd ..
```
* **Step 2.** Start Metro-Bundler ( `In a separate terminal` )
```bash
npx react-native start
```
* **Step 3.** Run the app
```bash
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](https://github.com/adwardstark/reactive-kt-example/blob/master/LICENSE) file for details.