https://github.com/rhdeck/react-native-kotlin-bridge
React Native plugin to automatically generate bridging code for Kotlin native modules
https://github.com/rhdeck/react-native-kotlin-bridge
Last synced: 3 months ago
JSON representation
React Native plugin to automatically generate bridging code for Kotlin native modules
- Host: GitHub
- URL: https://github.com/rhdeck/react-native-kotlin-bridge
- Owner: rhdeck
- License: mit
- Created: 2018-08-07T00:45:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-17T18:24:30.000Z (almost 8 years ago)
- Last Synced: 2025-02-28T17:46:55.916Z (over 1 year ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-kotlin-bridge
Utility for writing helper Kotlin and JS code so you can just write your modules
# Usage
```
cd /path/to/my/module
rnkb
```
This will scan your kotlin files, make the JS and the ReactPackage based on exposed (with the `@ReactMethod` attribute) methods and properties. A file called react-kotlin-bridge will be created.
# Watch mode: rnkb --watch
Watches for changes in kt files in your module, and rebuilds the .m bridge on the fly.
```
cd /path/to/my/module
rnkb --watch
```
Active development, currently only helpful for basic native modules. Not yet aware of events or viewmanagers