@sonr-io/react-native-motor
v0.0.2
Published
test
Downloads
3
Readme
motor-bridge-react-native
This repo was made to serve as a bridge between native modules for iOS and Android. With it, you gain access to native capabilities. Here the bridge is made to compile motorkit and it could be used on projects like Beam or sonr-ui-components
Installation
Run yarn v1 command.
yarn
Usage
Check example folder to work with it running locally
import { checkBridge } from "motor-bridge-react-native";
// ...
const result = await checkBridge("the brigde is working!");
This code can also be used on the next repository where you want to use this bridge. First, you need to publish to npm. Once imported, you just need to link this code with your project, running the command:
react-native link motor-bridge-react-native #or your npm published name
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
Know Issues
If it fails on MotorKit dependencies and you want to run it locally because of cocoapods, remove it to test. Like this commit link
Reference
Follow web articles describing how to create a native module for ios, like this one
License
MIT
Made with create-react-native-library