Giter VIP home page Giter VIP logo

react-native-here-maps's Introduction

Build Status

HERE Maps React-Native IOS Map/Route/Turn-by-Turn Navigation

Routing Navigation

Copyright (c) 2011-2018 HERE Europe B.V.

Note: In order to get the sample code to work, you must replace all instances of {YOUR_APP_ID}, {YOUR_APP_CODE} and {YOUR_LICENSE_KEY} within the code and use your own HERE credentials.

You can obtain a set of credentials from the Contact Us page on developer.here.com.The bundle ID registered must match it in your app.

THIS MODULE CURRENTLY WORKS ON IOS ONLY, ANDROID VERSION IS STILL IN DEVELOPMENT.

iOS Install

  1. Add pod 'HEREMaps', '>= 3.8' to your Podfile in IOS directory. Run ' cd ios' and 'pod install'.

  2. Add bridging file HRMap.js to your project directory.

  3. In XCode project Add HRMapManager.m, HRMapView.h, HRMapView.m using Add Files to "project-name".

  4. In Build Phases of your project add NMAKit.framework from ios/Pods/HEREMaps/Framework.

  5. Select an eligible provisioning profile or enable "Automatically manage signing" in General settings of the App target.

  6. Put corresponding to your HereMapsSDK credentials Bundle Identifier into General settings of the App target.

  7. In AppDelegate.m:

    • Enter an app id, app code and license key.
  8. Import NativeModules from "React-Native" and import MainHRMap from 'HRMap.js'.

  9. Render the map using <MainHRMap> tag. (Dont forget to add width and height to the map as well as Initial coordinates)

Running the example project

  1. Download the project.

  2. Run npm install in project directory.

  3. Run cd ios and pod install.

  4. Open the heremapsexample.xcworkspace file from ios directory.

  5. In AppDelegate.m:

    • Enter your app id, app code and license key.
  6. In General settings to your project put your Bundle identifier corresponding to your HERE credentials.

  7. Run the project on simulator or device.

Build Requirements

  • Xcode 8 & iOS 9 SDK or above
  • CRNA or Expokit Detached React Native Project.
  • WILL NOT work if you try to use in within Expo project since it does not support native modules.

Target Platform

  • iOS 10.0 and above

react-native-here-maps's People

Contributors

andriiseer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-here-maps's Issues

Android version

Hi.
Are you still working on android version? Or only iOS will be available.
Thanks.

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.