0.1.0 • Published 4 years ago

react-native-performant-marker v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Battle Tested ✅

React Native Performant Marker

npm version npm Platform - Android and iOS License: MIT styled with prettier

Installation

Add the dependency:

npm i react-native-performant-marker

Peer Dependencies

IMPORTANT! You need install them
"react-native-maps": ">= 0.26.1",

Usage

Import

import PerformantMarker from "react-native-performant-marker";

Basic Usage

This is just an example of usage PerformantMarker. You can simply use the MapView.Marker's every prop and same usage. Inside of the FastImage is just a recommendation for CustomMarker image usage. It performs the best on react-native community.

<PerformantMarker
  title="Test"
  key="some-key-id"
  tracksViewChanges={false}
  onPress={() => {}}
  coordinate={{
    latitude,
    longitude,
  }}
>
  <FastImage source={markerIcon} style={styles.markerStyle} />
</PerformantMarker>

Author

FreakyCoder, kurayogun@gmail.com

License

React Native Performant Marker is available under the MIT license. See the LICENSE file for more info.