https://github.com/valudio/react-native-typescript-geojson
Typescript version of react-native-geojson with steroids
https://github.com/valudio/react-native-typescript-geojson
geojson react-native react-native-maps typescript
Last synced: about 1 month ago
JSON representation
Typescript version of react-native-geojson with steroids
- Host: GitHub
- URL: https://github.com/valudio/react-native-typescript-geojson
- Owner: valudio
- License: mit
- Created: 2019-06-19T23:03:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T00:49:49.000Z (over 2 years ago)
- Last Synced: 2025-03-18T13:15:14.464Z (about 2 months ago)
- Topics: geojson, react-native, react-native-maps, typescript
- Language: TypeScript
- Size: 1.57 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-typescript-geojson
Typescript version of: [react-native-geojson](https://github.com/frankrowe/react-native-geojson)
Fast way to add geojson to react-native-maps. with some typescript and utils, but still very tiny! less than 8kb!
### Install:
`npm install react-native-typescript-geojson`
`yarn add react-native-typescript-geojson`
### Example:
```js
import React from 'react';
import MapView from 'react-native-maps';
import Geojson from 'react-native-geojson';const alcatraz = {
type: 'FeatureCollection',
features: [
{
type: 'Feature',
properties: {},
geometry: {
type: 'Point',
coordinates: [-122.42305755615234, 37.82687023785448]
}
}
]
};const Map = props => (
);
```### RoadMap:
- [ ] Accept more props
- [ ] Testing
- [x] Add more typings
- [ ] Better examples
- [ ] Refactor
- [ ] Set up eslint ?
- [ ] Set up minify ?