npm link ./modules/my-dev-modulename
react-native link my-dev-modulename
check src/index.js
MyModule
.MyMethod ()
.then ((result) => {
console.log ('result', result);
})
.catch ((err) => {
console.error ('error', err);
});
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