slopen / react-native-module-playground

React Native Modules / Android / iOS (Obj-C & Swift)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Native Module Playground

npm link ./modules/my-dev-modulename
react-native link my-dev-modulename

Example

check src/index.js

MyModule
    .MyMethod ()
    .then ((result) => {
        console.log ('result', result);
    })
    .catch ((err) => {
        console.error ('error', err);
    });

Example Module boilerplate

Android / iOS Obj-C

git checkout example-module-android-iosobjc

Android / iOS Swift

git checkout example-module-android-iosswift

boilerplate files are in modules/react-native-example-module

uses react-native-example-module but with XCode setup

About

React Native Modules / Android / iOS (Obj-C & Swift)


Languages

Language:JavaScript 58.7%Language:Objective-C 24.3%Language:Python 9.1%Language:Java 7.9%