Module ImagePickerIOS-BsReactNative
let canUseCamera: (unit => unit) => unit;
You can read more on
ImagePickerIOS
API 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 => unit
openSelectDialog
( ~showImages: bool, ~showVideos: bool, string => unit, error => unit ) => unit
reference:
type error = { . "code": int, "message": string, };
openCameraDialog
( ~videoMode: bool, string => unit, error => unit ) => unit
reference:
type error = { . "code": int, "message": string, };