$ npm install react-native-crop-image --save
$ react-native link react-native-crop-image
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-crop-image
and addRNCropImage.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNCropImage.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
import RNCropImage from 'react-native-crop-image';
// TODO: What to do with the module?
RNCropImage;