Module ImagePickerIOS-BsReactNative
let canUseCamera: (unit => unit) => unit;You can read more on
ImagePickerIOSAPI usage in official docs: https://facebook.github.io/react-native/docs/imagepickeriosMethods
canRecordVideos
ImagePickerIOS.canRecordVideos(() => Js.log("We can record videos!"));canUseCamera
ImagePickerIOS.canUseCamera(() => Js.log("We can use camera!"));openSelectDialog
ImagePickerIOS.openSelectDialog( ~showImages=true, ~showVideos=true, imageUri => Js.log(imageUri)), error => Js.log(error) );openCameraDialog
ImagePickerIOS.openCameraDialog( ~videoMode=true, imageUri => Js.log(imageUri)), error => Js.log(error) );Function parameters
canRecordVideos && canUseCamera
unit => unitopenSelectDialog
( ~showImages: bool, ~showVideos: bool, string => unit, error => unit ) => unitreference:
type error = { . "code": int, "message": string, };openCameraDialog
( ~videoMode: bool, string => unit, error => unit ) => unitreference:
type error = { . "code": int, "message": string, };