An open API service indexing awesome lists of open source software.

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

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 ?