react-native-nativemodule

This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).


Keywords
Adroid, Native, Module, reactnative
License
ISC
Install
npm install react-native-nativemodule@0.0.1

Documentation

#react-native-BGNativeModule

下面两篇博客的示例代码:

##安装

rnpm install react-native-nativemodule

##集成 reactNative0.29版本以后,需要在MainApplication.java文件的getPackages方法中添加:

@Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
              new MainReactPackage(),
              new BGNativeExamplePackage()
      );
    }

##使用

import BGNativeModuleExample from 'react-native-nativemodule-example';

BGNativeModuleExample.testPrint("Jack", {
    height: '1.78m',
    weight: '7kg'
});

##Example

npm install