Giter VIP home page Giter VIP logo

get-started-react-native-maplibre-gl-js's Introduction

Get started with React Native and MapLibre GL JS

License: MIT

Quick way to star a native map application with MapLibre GL JS using React Native.

A simple fullscreen map application as an example on how to use MapTiler maps together with React Native and MapLibre GL JS for your own native app.

This app is made with expo-dev-client along with the plugin rnmapbox.

  1. Clone this repo
  git clone https://github.com/maptiler/get-started-react-native-maplibre-gl-js.git my-react-map
  1. Navigate to the newly created project folder my-react-map
  cd my-react-map
  1. Install dependencies
  npm install
  1. ⚠️ Open the App.js file and replace YOUR_MAPTILER_API_KEY_HERE with your actual MapTiler API key.

ℹ️ If you don't have an API KEY you can create it for FREE at https://www.maptiler.com/cloud/

  1. Build your project
  # Build your native Android project 
  npx expo run:android

  # Build your native iOS project
  npx expo run:ios
  • ⚠️ expo run:ios requires Xcode (macOS only) installed on your computer. See the setup guide
  • ⚠️ expo run:android requires Android Studio and the Android SDK to be installed. See the setup guide
  1. You will find your app on your virtual device (Emulator) or physical device.

Learn more

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

get-started-react-native-maplibre-gl-js's People

Contributors

bolollo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

get-started-react-native-maplibre-gl-js's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.