ImagePickerIOS
Deprecated. Use @react-native-community/image-picker-ios instead.
Reference
Methodsβ
canRecordVideos()
β
static canRecordVideos(callback)
canUseCamera()
β
static canUseCamera(callback)
openCameraDialog()
β
static openCameraDialog(config, successCallback, cancelCallback)
Parameters:
Name | Type | Required | Description |
---|---|---|---|
config | object | No | See below. |
successCallback | function | No | See below. |
cancelCallback | function | No | See below. |
config
is an object containing:
videoMode
: An optional boolean value that defaults to false.
successCallback
is an optional callback function that's invoked when the select dialog is opened successfully. It will include the following data:
[string, number, number]
cancelCallback
is an optional callback function that's invoked when the camera dialog is canceled.
openSelectDialog()
β
static openSelectDialog(config, successCallback, cancelCallback)
Parameters:
Name | Type | Required | Description |
---|---|---|---|
config | object | No | See below. |
successCallback | function | No | See below. |
cancelCallback | function | No | See below. |
config
is an object containing:
showImages
: An optional boolean value that defaults to false.showVideos
: An optional boolean value that defaults to false.
successCallback
is an optional callback function that's invoked when the select dialog is opened successfully. It will include the following data:
[string, number, number]
cancelCallback
is an optional callback function that's invoked when the select dialog is canceled.