No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 7ebf582 Jan 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android init Jan 22, 2019
ios init Jan 22, 2019
App.js init Jan 22, 2019
LICENSE Initial commit Jan 22, 2019
README.md init Jan 22, 2019
app.json init Jan 22, 2019
index.js init Jan 22, 2019
package.json Update package.json Jan 22, 2019
yarn.lock init Jan 22, 2019

README.md

Mapir React Native Demo

Demo Application for Mapir React Native SDK

What is Mapir?

See map.ir

Installation

git clone https://github.com/map-ir/Mapir-react-native-example.git
cd Mapir-react-native-example
  • Install our dependencies using npm i.

Start React Native Packager

Open up another tab in your Terminal and run

npm start

Run Android Simulator

  • Open up Android Studio and build with gradle
  • Start Android emulator
  • Run adb reverse tcp:8081 tcp:8081 to foward port to packager(needed for hot reloading, if you're not developing you can skip this step).
  • Run react-native run-android from Mapir-react-native-example directory

NOTE

If the build fails make sure gradle has permission to build from cli

cd android
chmod +x gradlew

Run iOS Simulator

You can run this with the react-native cli or Xcode

react-native run-ios

NOTE

If you run into

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/RNMapboxGLExample.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Just run the example from Xcode, it seems to be an issue with RN.