# react-native-typescript-geojson

> Fast way to add geojson to react-native-maps. with some typescript and utils

Latest version **0.0.4** (published 2019-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-typescript-geojson
pnpm add react-native-typescript-geojson
yarn add react-native-typescript-geojson
bun add react-native-typescript-geojson
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2019-06-21 |
| First published | 2019-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gonzalo Soriano |
| Maintainers | rassell |
| Keywords | react, react-native, typescript, map, geojson |

## Links

- npm: https://www.npmjs.com/package/react-native-typescript-geojson
- Repository: https://github.com/valudio/react-native-typescript-geojson
- Homepage: https://github.com/valudio/react-native-typescript-geojson#readme
- Issues: https://github.com/valudio/react-native-typescript-geojson/issues
- npm.io page: https://npm.io/package/react-native-typescript-geojson

## Dependencies (5)

- [uuid](https://npm.io/package/uuid.md) 3.0.1
- [@types/uuid](https://npm.io/package/@types/uuid.md) ^3.4.4
- [@types/react](https://npm.io/package/@types/react.md) >=16.8
- [@types/geojson](https://npm.io/package/@types/geojson.md) ^7946.0.7
- [@types/react-native-maps](https://npm.io/package/@types/react-native-maps.md) >=0.24

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2019-06-21
- 0.0.3 — 2019-06-21
- 0.0.2 — 2019-06-21
- 0.0.1 — 2019-06-20

## 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 => (
  <MapView>
    <Geojson geojson={alcatraz} />
  </MapView>
);
```

### RoadMap:

- [ ] Accept more props
- [ ] Testing
- [x] Add more typings
- [ ] Better examples
- [ ] Refactor
- [ ] Set up eslint ?
- [ ] Set up minify ?

---
_Source: https://npm.io/package/react-native-typescript-geojson · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
