Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

mapir-react-native-sdk

1.3.1 • Public • Published

Mapir SDK for React Native

What is Mapir?

See map.ir

Table of Contents

Installation

Dependencies

Npm

npm install mapir-react-native-sdk

Platform Specific Installation Guides

Here’s the complete code to display a map:

import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View, Image} from 'react-native';
import Mapir from 'mapir-react-native-sdk'
 
 
 
type Props = {};
export default class App extends Component<{}> {
    render() {
        return (
            <View style={styles.container}>
                <Mapir
            accessToken={'YOUR ACCESS TOKEN'}
                    zoomLevel={13}
                    centerCoordinate={[51.422548, 35.732573]}
                    style={styles.container}>
                </Mapir>
            </View>
        );
    }
}
 
const styles = StyleSheet.create({
    container: {
        flex: 1,
    }
});

Documentation

Mapir SDK is based on Mapbox Maps SDK for React Native v6.1.3 and provides extra API methods over Mapbox. For more information about how to use MapView and other components such as Adding Markers, Showing Current Location, etc., please see Mapbox for React Native First Steps.

Components

Sources

Layers

install

npm i mapir-react-native-sdk

Downloadsweekly downloads

3

version

1.3.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability