/react-native-mantis

iOS photo editor with crop and rotate

Primary LanguageObjective-C

react-native-react-native-mantis

Getting started

$ npm install react-native-mantis --save

Mostly automatic installation

$ 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'

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-react-native-mantis and add RNReactNativeMantis.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNReactNativeMantis.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Usage

import RNReactNativeMantis from 'react-native-mantis';

// TODO: What to do with the module?
RNReactNativeMantis;