react-native-bpk-component-map

1.0.42 • Public • Published

react-native-bpk-component-map

Backpack React Native map component.

Installation

npm install react-native-bpk-component-map --save-dev

This package depends on react-native-maps and its native components need to be integrated manually by following their instructions.

Usage

react-native-bpk-component-map is a thin wrapper around react-native-maps. It exports all the same components and values as react-native-maps so you should read their documentation.

import React from 'react';
import BpkMapView from 'react-native-bpk-component-map';
 
 
export default class App extends Component {
  render() {
    return (
      <BpkMapView
        style={{ flex: 1 }}
        initialRegion={{
          latitude: 37.78825,
          longitude: -122.4324,
          latitudeDelta: 0.0922,
          longitudeDelta: 0.0421,
        }}
      />
    );
  }
}

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i react-native-bpk-component-map

    Weekly Downloads

    2

    Version

    1.0.42

    License

    Apache-2.0

    Unpacked Size

    15.2 kB

    Total Files

    5

    Last publish

    Collaborators

    • anambl
    • skyscanner-koalasquad
    • gert-jan.vercauteren
    • frugoman
    • marianeumayer-skyscanner
    • ojcurt
    • tiagohngl