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.
14
14
` react-native-image-picker ` X.y._
15
15
16
16
## Installation
17
- 1 . Install
17
+
18
+ When
18
19
[ ` 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:
20
22
21
- 2 . Install ` @reason-react-native/image-picker `
22
23
``` console
23
24
npm install @reason-react-native/image-picker
24
25
# or
25
26
yarn add @reason-react-native/image-picker
26
27
```
27
28
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
29
30
` bsconfig.json ` . Something like
30
31
31
32
``` diff
@@ -40,6 +41,7 @@ yarn add @reason-react-native/image-picker
40
41
//...
41
42
}
42
43
```
44
+
43
45
## Usage
44
46
45
47
``` reason
@@ -57,7 +59,6 @@ ImagePicker.(
57
59
~text="text",
58
60
~reTryTitle="Retry",
59
61
~okTitle="Ok !",
60
- (),
61
62
),
62
63
(),
63
64
),
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ var $$Storage = { };
10
10
var Options = {
11
11
Button : Button ,
12
12
PermissionDenied : PermissionDenied ,
13
- Storage : $$Storage
13
+ $$ Storage : $$Storage
14
14
} ;
15
15
16
16
var ImagePicker = {
Original file line number Diff line number Diff line change @@ -101,22 +101,22 @@ module ImagePicker = {
101
101
external launchImageLibrary : (Options . t , response => unit ) => unit =
102
102
"launchImageLibrary" ;
103
103
};
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