react-native-native-bridge
Getting started
$ npm install react-native-native-bridge --save
Mostly automatic installation
$ react-native link react-native-native-bridge
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-native-bridge
and addRNNativeBridge.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNNativeBridge.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Usage
import RNNativeBridge from 'react-native-native-bridge';
// TODO: What to do with the module?
RNNativeBridge;