2.2.4 ⢠Published 4 years ago
mapir-react-native-sdk v2.2.4
MapirReatNativeSDK
React Native wrapper for mapbox-gl-js. Expose a bunch of component meant to be simple to use for React Native.
Get API Key
š You should first get api key from Map.ir
Installation
Dependencies
- node
- npm
- React Native recommended version ^0.62.2
npm install mapir-react-native-sdk
Platform Specific Installation Guides
Quick start
Import module
import React, {Component} from 'react';
import { SafeAreaView, StyleSheet, View} from 'react-native';
import Mapir from 'mapir-react-native-sdk'
Generate Component
export default function App() {
onRegionDidChange = (e) => {
console.log('onRegionDidChange', e.geometry.coordinates);
};
return (
<SafeAreaView style={styles.container}>
<View style={styles.container}>
<Mapir
apiKey={'YOUR_MAPIR_API_KEY'}
onRegionDidChange={(e) => onRegionDidChange(e)}
style={styles.container}
>
<Mapir.Camera
zoomLevel={13}
centerCoordinate={[51.422548, 35.732573]}
/>
</Mapir>
</View>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
});
2.2.3
4 years ago
2.2.2
4 years ago
2.2.4
4 years ago
2.2.1
5 years ago
2.2.0
5 years ago
2.1.5
5 years ago
2.1.4
6 years ago
2.1.3
6 years ago
2.1.2
6 years ago
2.1.1
6 years ago
2.1.0
6 years ago
2.0.5
6 years ago
2.0.4
6 years ago
2.0.3
6 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.8.0
6 years ago
1.7.1
6 years ago
1.7.0
6 years ago
1.6.2
6 years ago
1.6.1
6 years ago
1.6.0
6 years ago
1.5.0
6 years ago
1.4.3
6 years ago
1.4.2
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.10
6 years ago
1.1.9
6 years ago
1.1.8
6 years ago
1.1.7
6 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.0
6 years ago