rnh
react-native-hello
npm i react-native-hello
rnh

react-native-hello

A simple and clean React Native module for Android

by Xiao Ling

1.0.0 (see all)License:MITTypeScript:Not Found
npm i react-native-hello
Readme

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

  1. Create a new React Native project:

    react-native init NewProject
    
  2. Add the local module to dependencies in package.json:

    "dependencies": {
        "react": "16.0.0-alpha.6",
        "react-native": "0.43.3",
        "react-native-helloworld":"file:../"
    },
    
  3. Link dependencies:

    react-native link
    
  4. Use 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

Downloads/wk

13

GitHub Stars

14

LAST COMMIT

5yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

2

OPEN PRs

0
VersionTagPublished
1.0.0
latest
5yrs ago
No alternatives found
No tutorials found
Add a tutorial