2.2.4 ā¢ Published 3 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
3 years ago
2.2.2
3 years ago
2.2.4
3 years ago
2.2.1
4 years ago
2.2.0
4 years ago
2.1.5
4 years ago
2.1.4
5 years ago
2.1.3
5 years ago
2.1.2
5 years ago
2.1.1
5 years ago
2.1.0
5 years ago
2.0.5
5 years ago
2.0.4
5 years ago
2.0.3
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.8.0
5 years ago
1.7.1
5 years ago
1.7.0
5 years ago
1.6.2
5 years ago
1.6.1
5 years ago
1.6.0
5 years ago
1.5.0
5 years ago
1.4.3
5 years ago
1.4.2
5 years ago
1.4.1
5 years ago
1.4.0
5 years ago
1.3.1
5 years ago
1.3.0
5 years ago
1.2.3
5 years ago
1.2.2
5 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.10
5 years ago
1.1.9
5 years ago
1.1.8
5 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.0
5 years ago