No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 771200d Jan 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Fix Android Bugs Jan 22, 2019
LICENSE Initial commit Jan 15, 2019
README.md Update README.md Jan 20, 2019
package.json Fix Android Bug Jan 22, 2019

README.md

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