$ npm install react-native-mantis --save
$ react-native react-native-mantis
Add to your podfile:
pod 'Mantis', :git => 'https://github.com/guoyingtao/Mantis' pod 'RNReactNativeMantis', :path => '../node_modules/react-native-mantis/ios'
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-react-native-mantis
and addRNReactNativeMantis.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNReactNativeMantis.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
import RNReactNativeMantis from 'react-native-mantis';
// TODO: What to do with the module?
RNReactNativeMantis;