New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-mapmagic-gl

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-mapmagic-gl

Mapmagic GL is a react-native interactive maps library

latest
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

MapMagic GL SDK for React Native

MapMagic is a React-Native library that simplifies your life.

Visit our official website at https://www.mapmagic.co.th

Installation

Dependencies

  • node
  • npm
  • React Native recommended version 0.50 or greater

Yarn

yarn add react-native-mapmagic-gl

Npm

npm install react-native-mapmagic-gl --save

or

Source Code

  • clone source code from gitlab
git clone git@gitlab.thinknet.co.th:mobile/react-native-mapmagic-gl.git
  • install node_module dependencies
cd react-native-mapmagic-gl
npm install
  • pack project to node_module ( result in react-native-mapmagic-gl-x.x.x.tgz file)
npm pack
  • move file to project and edit file package.json
 "dependencies": {
    ...
    ,
    "react-native-mapmagic-gl": "file:{pathtofile}"
  },
  • install node_module dependencies in project
npm install

Installation Guides

Note on iOS

In the Info of your application target Add Key MGLMapboxMetricsEnabledSettingShownInApp -> YES

Run Example in Source Code

Example

import MapboxGL from 'react-native-mapmagic-gl';

....

<MapboxGL.MapMagicView 
  style={{ flex: 1 }}
  showUserLocation={true}
  zoomLevel={12}
  app_id={'xxxx'}
  api_key={'xxx'}
  lang={'en'}
  userTrackingMode={MapboxGL.UserTrackingModes.Follow}/>

Keywords

gl

FAQs

Package last updated on 21 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts