Skip to content

Commit 81e07a7

Browse files
committed
Merge branch 'master' of github.com:ivpusic/react-native-image-crop-picker
2 parents cb79ffc + 67860af commit 81e07a7

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

README.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# react-native-image-crop-picker
22
iOS/Android image picker with support for multiple images and cropping
33

4-
**NOTE:** This library is result of one-night hacking, so please use it with caution. Don't assume there are no bugs. It is tested just on simple cases.
5-
64
## Result
75

86
#### iOS
@@ -62,6 +60,8 @@ ImagePicker.openPicker({
6260
pod 'react-native-image-crop-picker', :path => '../node_modules/react-native-image-crop-picker/ios'
6361
```
6462

63+
[- Step By Step tutorial](https://github.com/ivpusic/react-native-image-crop-picker#ios-step-by-step-installation)
64+
6565
#### Android
6666
```gradle
6767
// file: android/settings.gradle
@@ -115,5 +115,36 @@ It is basically wrapper around few libraries
115115
- QBImagePickerController
116116
- RSKImageCropper
117117

118+
# iOS Step by Step installation
119+
120+
- Create new react native project with Pods support
121+
```
122+
react-native init picker
123+
cd picker
124+
npm i react-native-image-crop-picker --save
125+
cd ios
126+
pod init
127+
```
128+
129+
- Inside `ios` directory change `Podfile` to following
130+
```
131+
platform :ios, '8.0'
132+
133+
target 'picker' do
134+
source 'https://github.com/CocoaPods/Specs.git'
135+
pod 'React', :subspecs => ['Core', 'RCTImage', 'RCTNetwork', 'RCTText', 'RCTWebSocket'], :path => '../node_modules/react-native'
136+
pod 'react-native-image-crop-picker', :path => '../node_modules/react-native-image-crop-picker/ios'
137+
end
138+
```
139+
140+
- Run
141+
```
142+
pod install
143+
```
144+
145+
- Add `$(inherited)` to other linker flags under Build Settings (XCode -> open project_name.xcworkspace)
146+
147+
Done!
148+
118149
## License
119150
*MIT*

0 commit comments

Comments
 (0)