{"id":18909876,"url":"https://github.com/map-ir/mapir-mapbox","last_synced_at":"2025-04-15T06:30:48.728Z","repository":{"id":46925470,"uuid":"165895570","full_name":"map-ir/mapir-mapbox","owner":"map-ir","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-04T06:34:43.000Z","size":81048,"stargazers_count":12,"open_issues_count":11,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T17:06:40.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/map-ir.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-15T17:39:22.000Z","updated_at":"2022-05-23T07:20:11.000Z","dependencies_parsed_at":"2023-01-24T00:17:01.631Z","dependency_job_id":null,"html_url":"https://github.com/map-ir/mapir-mapbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fmapir-mapbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fmapir-mapbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fmapir-mapbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fmapir-mapbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/map-ir","download_url":"https://codeload.github.com/map-ir/mapir-mapbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249020668,"owners_count":21199597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T09:35:28.753Z","updated_at":"2025-04-15T06:30:48.696Z","avatar_url":"https://github.com/map-ir.png","language":"Java","readme":"# Mapir SDK for React Native\n\n[![npm version](https://badge.fury.io/js/mapir-mapbox.svg)](https://badge.fury.io/js/mapir-mapbox.svg)\n_A React Native library for building maps with the [Mapbox Maps SDK for iOS](https://www.mapbox.com/ios-sdk/) and [Mapbox Maps SDK for Android](https://www.mapbox.com/android-sdk/)_\n\n\n![Map.ir](https://map.ir/css/images/mapir-logo.png) React Native wrapper for mapbox-gl-js. Expose a bunch of component meant to be simple to use for React Native.\n\n## Get API Key\n🔑 You should first get api key from [Map.ir](https://corp.map.ir/registration/)\n\n\n## Installation\n\n**Dependencies**\n\n* [node](https://nodejs.org)\n* [npm](https://www.npmjs.com/)\n* [React Native](https://facebook.github.io/react-native/) recommended version ^0.62.2\n\n```\nnpm install mapir-react-native-sdk\n```\n\n### Platform Specific Installation Guides\n\n* [Android](https://github.com/map-ir/mapir-mapbox/blob/master/android/install.md)\n* [iOS](https://github.com/map-ir/mapir-mapbox/blob/master/ios/install.md)\n* [example](https://github.com/map-ir/Mapir-react-native-example)\n\n## Quick start \n\n### Import module\n\n```js\nimport React, {Component} from 'react';\nimport { SafeAreaView, StyleSheet, View} from 'react-native';\nimport Mapir from 'mapir-react-native-sdk'\n```\n\n### Generate Component\n```jsx\nexport default function App() {\n  onRegionDidChange = (e) =\u003e {\n    console.log('onRegionDidChange', e.geometry.coordinates);\n  };\n  return (\n    \u003cSafeAreaView style={styles.container}\u003e\n      \u003cView style={styles.container}\u003e\n        \u003cMapir\n          apiKey={'YOUR_MAPIR_API_KEY'}\n          onRegionDidChange={(e) =\u003e onRegionDidChange(e)}\n          style={styles.container}\n        \u003e\n          \u003cMapir.Camera\n            zoomLevel={13}\n            centerCoordinate={[51.422548, 35.732573]}\n          /\u003e\n        \u003c/Mapir\u003e\n      \u003c/View\u003e\n    \u003c/SafeAreaView\u003e\n  );\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n  },\n});\n```\n\n📖 [English Documentation](https://github.com/map-ir/mapir-react-native-sdk/wiki/Documentation)\n\n📖 [Persian Documentation](https://support.map.ir/developers/reactnative/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmap-ir%2Fmapir-mapbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmap-ir%2Fmapir-mapbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmap-ir%2Fmapir-mapbox/lists"}