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