mirror of
https://github.com/status-im/react-native-image-crop-picker.git
synced 2025-02-23 10:58:16 +00:00
Merge branch 'master' of github.com:ivpusic/react-native-image-crop-picker
This commit is contained in:
commit
81e07a7284
35
README.md
35
README.md
@ -1,8 +1,6 @@
|
|||||||
# react-native-image-crop-picker
|
# react-native-image-crop-picker
|
||||||
iOS/Android image picker with support for multiple images and cropping
|
iOS/Android image picker with support for multiple images and cropping
|
||||||
|
|
||||||
**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.
|
|
||||||
|
|
||||||
## Result
|
## Result
|
||||||
|
|
||||||
#### iOS
|
#### iOS
|
||||||
@ -62,6 +60,8 @@ ImagePicker.openPicker({
|
|||||||
pod 'react-native-image-crop-picker', :path => '../node_modules/react-native-image-crop-picker/ios'
|
pod 'react-native-image-crop-picker', :path => '../node_modules/react-native-image-crop-picker/ios'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[- Step By Step tutorial](https://github.com/ivpusic/react-native-image-crop-picker#ios-step-by-step-installation)
|
||||||
|
|
||||||
#### Android
|
#### Android
|
||||||
```gradle
|
```gradle
|
||||||
// file: android/settings.gradle
|
// file: android/settings.gradle
|
||||||
@ -115,5 +115,36 @@ It is basically wrapper around few libraries
|
|||||||
- QBImagePickerController
|
- QBImagePickerController
|
||||||
- RSKImageCropper
|
- RSKImageCropper
|
||||||
|
|
||||||
|
# iOS Step by Step installation
|
||||||
|
|
||||||
|
- Create new react native project with Pods support
|
||||||
|
```
|
||||||
|
react-native init picker
|
||||||
|
cd picker
|
||||||
|
npm i react-native-image-crop-picker --save
|
||||||
|
cd ios
|
||||||
|
pod init
|
||||||
|
```
|
||||||
|
|
||||||
|
- Inside `ios` directory change `Podfile` to following
|
||||||
|
```
|
||||||
|
platform :ios, '8.0'
|
||||||
|
|
||||||
|
target 'picker' do
|
||||||
|
source 'https://github.com/CocoaPods/Specs.git'
|
||||||
|
pod 'React', :subspecs => ['Core', 'RCTImage', 'RCTNetwork', 'RCTText', 'RCTWebSocket'], :path => '../node_modules/react-native'
|
||||||
|
pod 'react-native-image-crop-picker', :path => '../node_modules/react-native-image-crop-picker/ios'
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
|
- Run
|
||||||
|
```
|
||||||
|
pod install
|
||||||
|
```
|
||||||
|
|
||||||
|
- Add `$(inherited)` to other linker flags under Build Settings (XCode -> open project_name.xcworkspace)
|
||||||
|
|
||||||
|
Done!
|
||||||
|
|
||||||
## License
|
## License
|
||||||
*MIT*
|
*MIT*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user