Skip to content

Commit f19cee3

Browse files
committed
Remove example from bindings?!
1 parent c171b7f commit f19cee3

File tree

3 files changed

+26
-25
lines changed

3 files changed

+26
-25
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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
2324
npm install @reason-react-native/image-picker
2425
# or
2526
yarn 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
),

src/ReactNativeImagePicker.bs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var $$Storage = { };
1010
var Options = {
1111
Button: Button,
1212
PermissionDenied: PermissionDenied,
13-
Storage: $$Storage
13+
$$Storage: $$Storage
1414
};
1515

1616
var ImagePicker = {

src/ReactNativeImagePicker.re

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff 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+
*/

0 commit comments

Comments
 (0)