New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-mapbox-gl

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-mapbox-gl

_A react native component for accessing [Mapbox GL](https://www.mapbox.com/mapbox-gl/)_

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
56
decreased by-25.33%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Mapbox GL

A react native component for accessing Mapbox GL

To get this running locally:

  1. npm install react-native-mapbox-gl --save (Not yet published)
  2. In the XCode's Project navigator, right click on project's name ➜ Add Files to <...>
  3. Add node_modules/react-native-mapbox-gl/RCTMapboxGL.xcodeproj
  4. Also add node_modules/react-native-mapbox-gl/RCTMapboxGL/MapboxGL.bundle
  5. Select your project in the Project navigator. Add libRCTMapboxGL.a to your project's Build Phases ➜ Link Binary With Libraries
  6. Add the following Cocoa framework dependencies to your target's Link Binary With Libraries build phase:
  • CoreTelephony.framework
  • GLKit.framework
  • ImageIO.framework
  • MobileCoreServices.framework
  • QuartzCore.framework
  • SystemConfiguration.framework
  • libc++.dylib
  • libsqlite3.dylib
  • libz.dylib
  1. Cross your fingers and build!

Info on installing Mapbox GL normally

Adding a MapboxGLView:
var map = React.createClass({
  render: function() {
    var center = {
     latitude: 40.7223,
     longitude: -73.9878
   };
    return (
      <View>
        <MapboxGLView
           style={styles.map}
           rotateEnabled={true}
           showsUserLocation={true}
           accessToken={'your-mapbox.com-access-token'}
           styleURL={'https://www.mapbox.com/mapbox-gl-styles/styles/mapbox-streets-v7.json'}
           zoomLevel={13}
           centerCoordinate={center}
         />
      </View>
    );
  }
});

Keywords

FAQs

Package last updated on 01 May 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc