1.1.0 โข Published 7 months ago
react-native-mapa v1.1.0
Prerequisite
react-native-mapa relies on mapbox, so you need to provide a Mapbox Access Token
.
Dependencies
- node
- npm
- React Native (0.70+)
Installation
Please check the installation documentation Installation
Run Project
IOS
# YARN
yarn run ios
# NPM
npm run ios
Android
# YARN
yarn run android
# NPM
npm run android
Example
import Mapa from 'react-native-mapa';
import {SafeAreaView, StyleSheet} from 'react-native';
import React from 'react';
Mapa.setAccessToken(
'pk.XXX',
);
function Mapview({}: any): React.JSX.Element {
return (
<SafeAreaView style={styles.container}>
<Mapa.MapView>
<Mapa.Camera />
<Mapa.Compass />
</Mapa.MapView>
</SafeAreaView>
);
}
export default Mapview;
const styles = StyleSheet.create({
container: {
height: '100%',
},
});
DOCUMENTTATION
Components
Sources
Layers
Draw
1.1.0
7 months ago
1.0.7
12 months ago
1.0.6-beta.8
12 months ago
1.0.6-beta.7
12 months ago
1.0.6-beta.6
12 months ago
1.0.6-beta.5
12 months ago
1.0.6-beta.4
12 months ago
1.0.6-beta.3
12 months ago
1.0.6-beta.2
12 months ago
1.0.6-beta.1
12 months ago
1.0.6-beta.0
12 months ago
1.0.6
12 months ago
1.0.5-beta.0
12 months ago
1.0.5
12 months ago
1.0.4
12 months ago
1.0.3
12 months ago
1.0.2
12 months ago
1.0.0
12 months ago