File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,19 @@ ImagePicker.(
5454 ~cameraType=`back,
5555 ~mediaType=`photo,
5656 ~permissionDenied=
57- Options.PermissionDenied.options(~title="Permission denied !", ()),
57+ Options.PermissionDenied.options(
58+ ~title="Permission denied !",
59+ ~text="text",
60+ ~reTryTitle="Retry",
61+ ~okTitle="Ok !",
62+ (),
63+ ),
5864 (),
5965 ),
66+ res => {
67+ Js.log(res##uri);
68+ Js.log(res##path);
69+ }
6070 )
6171);
6272```
Original file line number Diff line number Diff line change @@ -102,3 +102,22 @@ module ImagePicker = {
102102 external launchImageLibrary : (Options . t , response => unit ) => unit =
103103 "launchImageLibrary" ;
104104};
105+
106+ ImagePicker . (
107+ launchCamera(
108+ Options . make(
109+ ~title= "Take a picture" ,
110+ ~cameraType= ` back ,
111+ ~mediaType= ` photo ,
112+ ~permissionDenied=
113+ Options . PermissionDenied . options(
114+ ~title= "Permission denied !" ,
115+ ~text= "text" ,
116+ ~reTryTitle= "Retry" ,
117+ ~okTitle= "Ok !" ,
118+ () ,
119+ ),
120+ () ,
121+ ),
122+ )
123+ );
You can’t perform that action at this time.
0 commit comments