Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
ReyhaneMasumi committed Jan 22, 2019
1 parent 2376029 commit e1bacde
Show file tree
Hide file tree
Showing 279 changed files with 24,020 additions and 0 deletions.
26 changes: 26 additions & 0 deletions App.js
@@ -0,0 +1,26 @@

import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View, Image} from 'react-native';
import Mapir from 'mapir-react-native-sdk'

type Props = {};
export default class App extends Component<{}> {
render() {
return (
<View style={styles.container}>
<Mapir
accessToken={'YOUR MAPIR TOKEN'}
zoomLevel={13}
centerCoordinate={[51.422548, 35.732573]}
style={styles.container}>
</Mapir>
</View>
);
}
}

const styles = StyleSheet.create({
container: {
flex: 1,
}
});
62 changes: 62 additions & 0 deletions README.md
@@ -0,0 +1,62 @@
<a href="https://www.corp.map.ir">
<img src="https://map.ir/css/images/site-logo.svg" width="500"/>
</a>

# Mapir React Native Demo

Demo Application for [Mapir React Native SDK](https://github.com/map-ir/mapir-react-native-sdk)

## What is Mapir?

See [map.ir](http://corp.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](https://github.com/facebook/react-native/issues/14423) with RN.
Binary file added android/.gradle/4.4/fileChanges/last-build.bin
Binary file not shown.
Binary file added android/.gradle/4.4/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added android/.gradle/4.4/fileHashes/fileHashes.lock
Binary file not shown.
Binary file added android/.gradle/4.4/taskHistory/taskHistory.bin
Binary file not shown.
Binary file added android/.gradle/4.4/taskHistory/taskHistory.lock
Binary file not shown.
Binary file added android/.gradle/4.6/fileChanges/last-build.bin
Binary file not shown.
Binary file added android/.gradle/4.6/fileContent/fileContent.lock
Binary file not shown.
Binary file added android/.gradle/4.6/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added android/.gradle/4.6/fileHashes/fileHashes.lock
Binary file not shown.
Binary file not shown.
Binary file added android/.gradle/4.6/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file added android/.gradle/4.6/javaCompile/jarAnalysis.bin
Binary file not shown.
Binary file added android/.gradle/4.6/javaCompile/javaCompile.lock
Binary file not shown.
Binary file added android/.gradle/4.6/javaCompile/taskHistory.bin
Binary file not shown.
Binary file added android/.gradle/4.6/javaCompile/taskJars.bin
Binary file not shown.
Binary file added android/.gradle/4.6/taskHistory/taskHistory.bin
Binary file not shown.
Binary file added android/.gradle/4.6/taskHistory/taskHistory.lock
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions android/.gradle/buildOutputCleanup/cache.properties
@@ -0,0 +1,2 @@
#Tue Jan 15 16:16:57 IRST 2019
gradle.version=4.6
Binary file not shown.
Empty file.
1 change: 1 addition & 0 deletions android/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added android/.idea/caches/build_file_checksums.ser
Binary file not shown.
29 changes: 29 additions & 0 deletions android/.idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions android/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e1bacde

Please sign in to comment.