1.0.0 • Published 7 years ago
react-native-handsoemhorse-toast-android
Licence
ISC
Version
1.0.0
Deps
0
Size
23 kB
Vulns
0
Weekly
0
Native Module: react-native-helloworld
Getting started to write React Native bridge module for Android.
How to Run the Example
cd Example
npm install
react-native run-android
How to Use the Module
Create a new React Native project:
react-native init NewProjectAdd the local module to dependencies in package.json:
"dependencies": { "react": "16.0.0-alpha.6", "react-native": "0.43.3", "react-native-helloworld":"file:../" },Link dependencies:
react-native linkUse the module in index.android.js:
import MyModule from 'react-native-helloworld'; const onButtonPress = () => { MyModule.alert('Hello World'); };
Blog
React Native Bridging Modules for Android from Scratch on Windows