|
1 | | -# BuckleScript bindings to @react-native-community/picker |
| 1 | +# `@reason-react-native/picker` |
2 | 2 |
|
3 | 3 | [](https://github.com/reason-react-native/picker/actions) |
4 | | -[](https://www.npmjs.com/package/@reason-react-native/picker) |
| 4 | +[](https://www.npmjs.com/@reason-react-native/picker) |
| 5 | +[](https://reason-react-native.github.io/discord/) |
5 | 6 |
|
6 | | -These are complete BuckleScript bindings to |
7 | | -[`@reason-react-native/picker`](https://github.com/react-native-community/react-native-picker), |
8 | | -in Reason syntax. |
| 7 | +[ReScript](https://rescript-lang.org) / [Reason](https://reasonml.github.io) bindings for |
| 8 | +[`@react-native-picker/picker`](https://github.com/react-native-picker/picker). |
9 | 9 |
|
10 | | -Version `x.y.z` of `@reason-react-native/picker` should be compatible with |
11 | | -version `x.y.*` of `@react-native-community/picker`. |
| 10 | +Exposed as `ReactNativePicker` module. |
12 | 11 |
|
13 | | -## Installation |
14 | | - |
15 | | -With `yarn`: |
| 12 | +`@reason-react-native/picker` X.y.\* means it's compatible with |
| 13 | +`@react-native-picker/picker` X.y.\* |
16 | 14 |
|
17 | | -```shell |
18 | | -yarn add @reason-react-native/picker |
19 | | -``` |
| 15 | +## Installation |
20 | 16 |
|
21 | | -With `npm`: |
| 17 | +When |
| 18 | +[`@react-native-picker/picker`](https://github.com/react-native-picker/picker) |
| 19 | +is properly installed & configured by following their installation instructions, |
| 20 | +you can install the bindings: |
22 | 21 |
|
23 | | -```shell |
| 22 | +```console |
24 | 23 | npm install @reason-react-native/picker |
| 24 | +# or |
| 25 | +yarn add @reason-react-native/picker |
25 | 26 | ``` |
26 | 27 |
|
27 | | -`@react-native-community/picker` should be properly installed and linked. Please |
28 | | -refer to the relevant |
29 | | -[instructions](https://github.com/react-native-community/react-native-picker/blob/master/README.md). |
30 | | - |
31 | | -`@reason-react-native/picker` should be added to `bs-dependencies` in your `bsconfig.json`. Something like |
| 28 | +`@reason-react-native/picker` should be added to `bs-dependencies` in your |
| 29 | +`bsconfig.json`: |
32 | 30 |
|
33 | 31 | ```diff |
34 | 32 | { |
|
0 commit comments