File tree Expand file tree Collapse file tree 3 files changed +26
-25
lines changed Expand file tree Collapse file tree 3 files changed +26
-25
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,19 @@ Exposed as `ReactNativeImagePicker` module.
1414` react-native-image-picker ` X.y._
1515
1616## Installation
17- 1 . Install
17+
18+ When
1819[ ` react-native-image-picker ` ] ( https://github.com/react-native-community/react-native-image-picker )
19- by following their installation instructions.
20+ is properly installed & configured by following their installation instructions,
21+ you can install the bindings:
2022
21- 2 . Install ` @reason-react-native/image-picker `
2223``` console
2324npm install @reason-react-native/image-picker
2425# or
2526yarn add @reason-react-native/image-picker
2627```
2728
28- 3 . Add ` @reason-react-native/image-picker ` to ` bs-dependencies ` in your
29+ ` @reason-react-native/image-picker ` should be added to ` bs-dependencies ` in your
2930` bsconfig.json ` . Something like
3031
3132``` diff
@@ -40,6 +41,7 @@ yarn add @reason-react-native/image-picker
4041 //...
4142}
4243```
44+
4345## Usage
4446
4547``` reason
@@ -57,7 +59,6 @@ ImagePicker.(
5759 ~text="text",
5860 ~reTryTitle="Retry",
5961 ~okTitle="Ok !",
60- (),
6162 ),
6263 (),
6364 ),
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ var $$Storage = { };
1010var Options = {
1111 Button : Button ,
1212 PermissionDenied : PermissionDenied ,
13- Storage : $$Storage
13+ $$ Storage : $$Storage
1414} ;
1515
1616var ImagePicker = {
Original file line number Diff line number Diff line change @@ -101,22 +101,22 @@ module ImagePicker = {
101101 external launchImageLibrary : (Options . t , response => unit ) => unit =
102102 "launchImageLibrary" ;
103103};
104-
105- ImagePicker . (
106- launchCamera(
107- Options . make(
108- ~title= "Take a picture" ,
109- ~cameraType= ` back ,
110- ~mediaType= ` photo ,
111- ~permissionDenied=
112- Options . PermissionDenied . options(
113- ~title= "Permission denied !" ,
114- ~text= "text" ,
115- ~reTryTitle= "Retry" ,
116- ~okTitle= "Ok !" ,
117- ( ),
118- ),
119- ( ),
120- ) ,
121- )
122- ) ;
104+ /*
105+ ImagePicker.(
106+ launchCamera(
107+ Options.make(
108+ ~title="Take a picture",
109+ ~cameraType=`back,
110+ ~mediaType=`photo,
111+ ~permissionDenied=
112+ Options.PermissionDenied.options(
113+ ~title="Permission denied !",
114+ ~text="text",
115+ ~reTryTitle="Retry",
116+ ~okTitle="Ok !",
117+ ),
118+ ( ),
119+ ),
120+ )
121+ );
122+ */
You can’t perform that action at this time.
0 commit comments