0.1.0 • Published 4 years ago
react-native-performant-marker v0.1.0
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.
0.1.0
4 years ago