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/imagepickerios

Methods

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,
};
let canRecordVideos: (unit => unit) => unit;
type error = Js.t({. code: int, message: string, });
let openCameraDialog: videoMode:bool => onSuccess:(unit => unit) => onError:(error => unit) => unit;
let openSelectDialog: showImages:bool => showVideos:bool => onSuccess:(string => unit) => onError:(error => unit) => unit;