Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rnmapbox/maps
A Mapbox react native module for creating custom maps
https://github.com/rnmapbox/maps
expo map mapbox mapbox-gl-native maplibre react-native
Last synced: 3 months ago
JSON representation
A Mapbox react native module for creating custom maps
- Host: GitHub
- URL: https://github.com/rnmapbox/maps
- Owner: rnmapbox
- License: mit
- Created: 2019-04-07T21:53:54.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T09:05:38.000Z (8 months ago)
- Last Synced: 2024-05-17T02:55:34.472Z (8 months ago)
- Topics: expo, map, mapbox, mapbox-gl-native, maplibre, react-native
- Language: Kotlin
- Homepage:
- Size: 34.4 MB
- Stars: 2,027
- Watchers: 36
- Forks: 813
- Open Issues: 60
-
Metadata Files:
- Readme: README-v10.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - rnmapbox/maps - A Mapbox react native module for creating custom maps (Kotlin)
README
# Getting Started
```shell
react-native init sample --version 0.60.5
cd sample
yarn add https://github.com/rnmapbox/maps#main --savecode android/build.gradle
``````gradle
# add the following:
allprojects {
repositories {
maven {
url 'https://api.mapbox.com/downloads/v2/releases/maven'
authentication {
basic(BasicAuthentication)
}
credentials {
// Do not change the username below.
// This should always be `mapbox` (not your username).
username = 'mapbox'
// Use the secret token you stored in gradle.properties as the password
password = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: ""
}
}
}
}
```code android/app/build.gradle
```gradle
# add the following:
android {
packagingOptions {
pickFirst 'lib/x86/libc++_shared.so'
pickFirst 'lib/x86_64/libc++_shared.so'
pickFirst 'lib/arm64-v8a/libc++_shared.so'
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
}
}
```code android/build.gradle
```
buildscript {
ext {
...
RNMapboxMapsImpl = 'mapbox'
}
}
```code ios/Podfile
```pod
# change these
$RNMapboxMapsImpl = 'mapbox'platform :ios, min_ios_version_supported
...
...
pre_install do |installer|
$RNMapboxMaps.pre_install(installer)
end
post_install do |installer|
react_native_post_install(installer)
$RNMapboxMaps.post_install(installer)
end
``````pod
# on RN 0.60 only:
# add modular_headers to `React-Core`
pod 'React-Core', :path => '../node_modules/react-native/React', modular_headers: true
```iOS:
* Add `$(SDKROOT)/usr/lib/swift` to Library search paths.