-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
310 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Changelog of `reason-react-native-maps` | ||
|
||
## 0.26.0 - 2019-11-1 | ||
|
||
Note that there are breaking changes in this release: | ||
|
||
- `react-native-maps` is now a peer dependency to make it more straightforward | ||
to use other versions of said package. | ||
- added constructors for some types passed as arguments to `MapView` methods | ||
- scripts are brought in line with those for `@reason-react-native/*` packages. | ||
|
||
Other changes: | ||
|
||
- documentation added for components and types | ||
|
||
## 0.24.1 - 2019-06-24 | ||
|
||
`View` props added to components | ||
|
||
## 0.24.0 - 2019-06-17 | ||
|
||
Initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 sgny | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,77 @@ | ||
# BuckleScript bindings to React Native Maps | ||
|
||
_This branch does not support `GeoJSON`. Please use the `geojson` branch and the | ||
`reason-react-native-maps-geojson` package if you need support for that format._ | ||
|
||
[![Version](https://img.shields.io/npm/v/reason-react-native-maps.svg)](https://www.npmjs.com/package/reason-react-native-maps) | ||
|
||
These are complete BuckleScript bindings to [`React Native Maps`](https://github.com/react-native-community/react-native-maps), in Reason syntax. | ||
These are complete BuckleScript bindings to | ||
[`React Native Maps`](https://github.com/react-native-community/react-native-maps), | ||
in Reason syntax. | ||
|
||
Version `x.y.z` of `reason-react-native-maps` should be compatible with version | ||
`x.y.*` of `react-native-maps`. | ||
|
||
## Changes | ||
|
||
Please see the [changelog](./CHANGELOG.md). | ||
|
||
## Installation | ||
|
||
With `yarn`: | ||
|
||
```shell | ||
yarn add reason-react-native-maps | ||
``` | ||
|
||
With `npm`: | ||
|
||
```shell | ||
npm install reason-react-native-maps | ||
``` | ||
|
||
`react-native-maps` should be properly installed if you are using React Native | ||
versions below 0.60 linked. Please refer to the relevant | ||
[instructions](https://github.com/react-native-community/react-native-maps/blob/master/docs/installation.md). | ||
|
||
Finally, `reason-react-native-maps` should be added to `bs-dependencies` in | ||
`BuckleScript` configuration of the project (`bsconfig.json`). For example, | ||
|
||
Version of these bindings follow that of the `React Native Maps` package. | ||
```json | ||
{ | ||
... | ||
"bs-dependencies": ["reason-react", "reason-react-native", "reason-react-native-maps"], | ||
... | ||
} | ||
``` | ||
|
||
## Modules | ||
|
||
### [MapView](docs/MapView.md) | ||
|
||
### [Marker](docs/Marker.md) | ||
|
||
### [Heatmap](docs/Heatmap.md) | ||
|
||
### [Circle](docs/Circle.md) | ||
|
||
### [Overlay](docs/Overlay.md) | ||
|
||
### [Polygon](docs/Polygon.md) | ||
|
||
### [Polyline](docs/Polyline.md) | ||
|
||
### [Callout](docs/Callout.md) | ||
|
||
### [CalloutSubview](docs/CalloutSubview.md) | ||
|
||
## Types | ||
|
||
### [LatLng](docs/LatLng.md) | ||
|
||
### [Region](docs/Region.md) | ||
|
||
### [Shared](docs/Shared.md) | ||
|
||
Further documentation will be added later. Documentation has been adapted from that for `React Native Maps`. | ||
Further documentation will be added later. Documentation has been adapted from | ||
that for `React Native Maps`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.