You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[CameraRoll](https://facebook.github.io/react-native/docs/cameraroll): Used to get all photos in camera roll or photo library.
50
+
*[react-native-camera](https://github.com/react-native-community/react-native-camera): Used to show camera in view.
51
+
*[react-native-video](https://github.com/react-native-community/react-native-video): Used to preview the video.
52
+
*[react-native-fs](https://github.com/itinance/react-native-fs): Used to copy generated photo or video to a temporary place.
52
53
53
54
## Usage
54
55
@@ -60,28 +61,64 @@ import * as ImagePicker from 'react-native-full-image-picker';
60
61
61
62
It has three method:
62
63
63
-
*`ImagePicker.getCamera(options)`: Take photo.
64
-
*`ImagePicker.getVideo(options)`: Video recording.
65
-
*`ImagePicker.getAlbum(options)`: Select from photo library.
64
+
*`ImagePicker.getCamera(options)`: Take photo from camera. (Camera Mode)
65
+
*`ImagePicker.getVideo(options)`: Video recording. (Video Mode)
66
+
*`ImagePicker.getAlbum(options)`: Select photo or video from photo library. (Photo Mode)
66
67
67
68
`options` is a object with these settings:
68
69
69
-
*`callback: (data: any[]) => void`: Callback method with photo or video array. Do not use `Alert` in it.
70
-
*`maxSize?: number`: The maximum number of photo count. Valid in camera or photo library.
70
+
*`callback: (data: any[]) => void`: Callback method with photo or video array. `data` is an uri array of photo or video. Do not use `Alert` in this callback method.
71
+
*`maxSize?: number`: The maximum number of photo count. Valid in camera or photo library mode.
71
72
*`sideType?: RNCamera.Constants.Type`: Side of camera, back or front. Valid in camera or video.
72
73
*`flashMode?: RNCamera.Constants.FlashMode`: Flash mode. Valid in camera or video.
73
74
74
75
You can use [react-native-general-actionsheet](https://github.com/gaoxiaosong/react-native-general-actionsheet) to show `ActionSheet` by same API and UI with `ActionSheetIOS`.
75
76
76
-
## Change Label
77
+
## Change Default Property
77
78
78
-
You can import page and change `defaultProps` to modify labels globally:
79
+
You can import page and change `defaultProps` to modify settings globally:
0 commit comments