Coder Social home page Coder Social logo

pencilcool / react-native-bgnativemoduleexample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liuchungui/react-native-bgnativemoduleexample

0.0 2.0 0.0 19.02 MB

A native module example

License: MIT License

Python 8.36% Java 32.00% JavaScript 20.49% Objective-C 39.14%

react-native-bgnativemoduleexample's Introduction

#react-native-BGNativeModuleExample

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

ReactNative之原生模块开发并发布——iOS篇

ReactNative之原生模块开发并发布——android篇

##安装

rnpm install react-native-nativemodule-example

##集成 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

react-native-bgnativemoduleexample's People

Contributors

liuchungui avatar

Watchers

James Cloos avatar pencilCool avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.