Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chakrihacker/react-native-safe-mapview
A react native mapview which catches all errors for you
https://github.com/chakrihacker/react-native-safe-mapview
Last synced: 2 months ago
JSON representation
A react native mapview which catches all errors for you
- Host: GitHub
- URL: https://github.com/chakrihacker/react-native-safe-mapview
- Owner: chakrihacker
- License: mit
- Created: 2018-07-30T16:51:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-07T15:40:17.000Z (almost 6 years ago)
- Last Synced: 2024-10-06T03:41:04.924Z (3 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# react-native-safe-mapview
React Native Map Component which catches errors and works smoothly
## Installation
`npm i -S react-native-safe-mapview`
or
`yarn add react-native-safe-mapview`## Why
- Many devs use setState for region and it causes performance issue which is solved by this component
- It also catches errors so you can happily work about other stuff## Usage
```jsx
{
this.mapRef = ref;
}}
// set any initial region, it's required
initialRegion={{
latitude: 12.9748534,
longitude: 77.627675,
latitudeDelta: 0.0922,
longitudeDelta: 0.0421
}}
// Set region whenever you want
region={this.state.region}
/>
```