Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Commit 1bc84b4

Browse files
authored
Merge pull request #24 from pbsc/MGW-956-update-to-1.18.2
Update to version 1.18.2
2 parents 63f5206 + ba92b71 commit 1bc84b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+4557
-3594
lines changed

.github/workflows/androidBuild.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
- name: Check out repository code
2525
uses: actions/checkout@v3
2626

27+
- name: Clear Gradle Cache
28+
run: rm -rf $HOME/.gradle/caches/
29+
2730
- name: Setup node
2831
uses: actions/setup-node@v3
2932
with:

.gitignore

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ DerivedData
2323
project.xcworkspace
2424
Pods/
2525
AirMapsExplorer.xcworkspace/
26-
ios/.xcode.env.local
26+
**/.xcode.env.local
2727

2828
# Android/IntelliJ
2929
#
@@ -69,11 +69,19 @@ example/vendor/bundle/
6969
example/ios/Config.xcconfig
7070

7171
# Ruby / CocoaPods
72-
/ios/Pods/
72+
**/Pods/
7373
/vendor/bundle/
7474

7575
# Temporary files created by Metro to check the health of the file watcher
7676
.metro-health-check*
7777

7878
# testing
7979
/coverage
80+
81+
# Yarn
82+
.yarn/*
83+
!.yarn/patches
84+
!.yarn/plugins
85+
!.yarn/releases
86+
!.yarn/sdks
87+
!.yarn/versions

CHANGELOG.md

Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,201 @@
11
# Changelog
22

3+
## [1.18.2](https://github.com/react-native-maps/react-native-maps/compare/v1.18.1...v1.18.2) (2024-10-14)
4+
5+
6+
### Bug Fixes
7+
8+
* correctly check for iOS OS version before using cameraZoomRange ([#5185](https://github.com/react-native-maps/react-native-maps/issues/5185)) ([4efd881](https://github.com/react-native-maps/react-native-maps/commit/4efd881ffb4995f77d7f325455053d30c50cd429))
9+
10+
## [1.18.1](https://github.com/react-native-maps/react-native-maps/compare/v1.18.0...v1.18.1) (2024-10-12)
11+
12+
13+
### Bug Fixes
14+
15+
* documentation on README.md ([#5174](https://github.com/react-native-maps/react-native-maps/issues/5174)) ([b853f3a](https://github.com/react-native-maps/react-native-maps/commit/b853f3ae28e72aa107eb61db79a90adb00f03492))
16+
17+
# [1.18.0](https://github.com/react-native-maps/react-native-maps/compare/v1.17.3...v1.18.0) (2024-08-18)
18+
19+
20+
### Features
21+
22+
* add anchor and centerOffset prop to GeoJson component to be passed to Marker ([#5140](https://github.com/react-native-maps/react-native-maps/issues/5140)) ([266be79](https://github.com/react-native-maps/react-native-maps/commit/266be79e924298633e60aed5c0b86d077fa479cc)), closes [#5139](https://github.com/react-native-maps/react-native-maps/issues/5139)
23+
24+
## [1.17.3](https://github.com/react-native-maps/react-native-maps/compare/v1.17.2...v1.17.3) (2024-07-27)
25+
26+
27+
### Bug Fixes
28+
29+
* **Android:** Added A11y for Map and Marker ([#5091](https://github.com/react-native-maps/react-native-maps/issues/5091)) ([f3f5a4e](https://github.com/react-native-maps/react-native-maps/commit/f3f5a4e45cb4a27624c87999d366710c17d4daee))
30+
31+
## [1.17.2](https://github.com/react-native-maps/react-native-maps/compare/v1.17.1...v1.17.2) (2024-07-27)
32+
33+
34+
### Bug Fixes
35+
36+
* export PolylinePressEvent ([#5125](https://github.com/react-native-maps/react-native-maps/issues/5125)) ([27fec3a](https://github.com/react-native-maps/react-native-maps/commit/27fec3a993af8fc5a21b9a303b34d73bc34f1914))
37+
38+
## [1.17.1](https://github.com/react-native-maps/react-native-maps/compare/v1.17.0...v1.17.1) (2024-07-21)
39+
40+
41+
### Bug Fixes
42+
43+
* **iOS:** ensure onPress(Marker) returns nativeEvent.position [#4996](https://github.com/react-native-maps/react-native-maps/issues/4996) ([#5092](https://github.com/react-native-maps/react-native-maps/issues/5092)) ([b2d2fd8](https://github.com/react-native-maps/react-native-maps/commit/b2d2fd8cddb8808a41ae881f87a7295ac78f5b06))
44+
45+
# [1.17.0](https://github.com/react-native-maps/react-native-maps/compare/v1.16.0...v1.17.0) (2024-07-21)
46+
47+
48+
### Features
49+
50+
* **android:** add dash pattern for Android Polygon ([#5115](https://github.com/react-native-maps/react-native-maps/issues/5115)) ([#5121](https://github.com/react-native-maps/react-native-maps/issues/5121)) ([4001ae8](https://github.com/react-native-maps/react-native-maps/commit/4001ae89dd82e6f0a247d3255f3cdaba253a0fcd))
51+
52+
# [1.16.0](https://github.com/react-native-maps/react-native-maps/compare/v1.15.7...v1.16.0) (2024-07-20)
53+
54+
55+
### Features
56+
57+
* **ios:** allow use of light compass theme with satellite/hybrid map… ([#5099](https://github.com/react-native-maps/react-native-maps/issues/5099)) ([befb86e](https://github.com/react-native-maps/react-native-maps/commit/befb86e0aa4e8f517301d01bc084246e21c08c0b))
58+
59+
## [1.15.7](https://github.com/react-native-maps/react-native-maps/compare/v1.15.6...v1.15.7) (2024-07-20)
60+
61+
62+
### Bug Fixes
63+
64+
* **ios:** Implement dash options for geojson polygon ([#5115](https://github.com/react-native-maps/react-native-maps/issues/5115)) ([5dc9381](https://github.com/react-native-maps/react-native-maps/commit/5dc9381ae600e239b5aa8a818f94a88dc161d8fb))
65+
66+
## [1.15.6](https://github.com/react-native-maps/react-native-maps/compare/v1.15.5...v1.15.6) (2024-05-30)
67+
68+
69+
### Bug Fixes
70+
71+
* **iOS:** iOS PrivacyInfo fix ([#5078](https://github.com/react-native-maps/react-native-maps/issues/5078)) ([9f458d9](https://github.com/react-native-maps/react-native-maps/commit/9f458d956ba2c16ee3f2a9e8849d9330dcefdda2))
72+
73+
## [1.15.5](https://github.com/react-native-maps/react-native-maps/compare/v1.15.4...v1.15.5) (2024-05-30)
74+
75+
76+
### Bug Fixes
77+
78+
* **android:** UIManagerModule fix for Bridgeless 0.74 ([#5061](https://github.com/react-native-maps/react-native-maps/issues/5061)) ([f194f99](https://github.com/react-native-maps/react-native-maps/commit/f194f9977ea7c6ab547b53e15b4d9a3480c8baa7))
79+
80+
## [1.15.4](https://github.com/react-native-maps/react-native-maps/compare/v1.15.3...v1.15.4) (2024-05-25)
81+
82+
83+
### Bug Fixes
84+
85+
* **ios:** resolve issue with Pods installation ([#5065](https://github.com/react-native-maps/react-native-maps/issues/5065)) ([9992c36](https://github.com/react-native-maps/react-native-maps/commit/9992c36054b0a8a056f0ce97d4687fcdf18c2ca5))
86+
87+
## [1.15.3](https://github.com/react-native-maps/react-native-maps/compare/v1.15.2...v1.15.3) (2024-05-24)
88+
89+
90+
### Bug Fixes
91+
92+
* **android:** move package namespace from Manifest to gradle ([d4916bb](https://github.com/react-native-maps/react-native-maps/commit/d4916bb6fff96f811d40c4d3b3bff8840442929d))
93+
94+
## [1.15.2](https://github.com/react-native-maps/react-native-maps/compare/v1.15.1...v1.15.2) (2024-05-20)
95+
96+
97+
### Bug Fixes
98+
99+
* use initialProps to set zoomTapEnabled in google-maps-ios ([#5059](https://github.com/react-native-maps/react-native-maps/issues/5059)) ([524194f](https://github.com/react-native-maps/react-native-maps/commit/524194ff62859cd82d78cbcca53c6f8e2da29bb7))
100+
101+
## [1.15.1](https://github.com/react-native-maps/react-native-maps/compare/v1.15.0...v1.15.1) (2024-05-05)
102+
103+
104+
### Bug Fixes
105+
106+
* **android:** fix non working tile update ([#5041](https://github.com/react-native-maps/react-native-maps/issues/5041)) ([29107d5](https://github.com/react-native-maps/react-native-maps/commit/29107d516ac6f6cb0ecbd604a5ebe43dfae339a2))
107+
108+
# [1.15.0](https://github.com/react-native-maps/react-native-maps/compare/v1.14.0...v1.15.0) (2024-05-04)
109+
110+
111+
### Features
112+
113+
* **ios:** Add possibility to use both MKMarkerAnnotationView and MKPinAnnotationView ([#5005](https://github.com/react-native-maps/react-native-maps/issues/5005)) ([6e4f49e](https://github.com/react-native-maps/react-native-maps/commit/6e4f49ead61557ca0eed6fd764317a848981e353))
114+
115+
# [1.14.0](https://github.com/react-native-maps/react-native-maps/compare/v1.13.2...v1.14.0) (2024-04-14)
116+
117+
118+
### Bug Fixes
119+
120+
* **android:** map initialization as expected ([b57d22f](https://github.com/react-native-maps/react-native-maps/commit/b57d22f887f352d7be636b3cc9b60be8254ab850))
121+
* **android:** map initialization as expected ([8ba7608](https://github.com/react-native-maps/react-native-maps/commit/8ba7608e90d188ee8bad50392968c60c5a2f15be))
122+
* **android:** map initialization as expected ([7e1dd58](https://github.com/react-native-maps/react-native-maps/commit/7e1dd58e3bf3ea174e0a526926b14ef38340a195))
123+
* **android:** map initialization as expected ([73640a6](https://github.com/react-native-maps/react-native-maps/commit/73640a6232f7e523c8962f6ab315bc9772ae154c))
124+
* **android:** map initialization as expected ([6554793](https://github.com/react-native-maps/react-native-maps/commit/6554793a0287060dd946edae0a92de3482c2b14d))
125+
126+
127+
### Features
128+
129+
* add support for new React Native architecture ([630b72e](https://github.com/react-native-maps/react-native-maps/commit/630b72ef90c2bcb8611ce907c4f359eefe40c555))
130+
* add support for new React Native architecture ([48665da](https://github.com/react-native-maps/react-native-maps/commit/48665da2a581d300557d40fe740b8a28bb1cdc43))
131+
* add support for new React Native architecture ([794c64f](https://github.com/react-native-maps/react-native-maps/commit/794c64f9288310a8da0bb5450011a8ef6236b952))
132+
* add support for new React Native architecture ([1310985](https://github.com/react-native-maps/react-native-maps/commit/1310985e6e2c0d5b915d7364cf52a99cca43ec8f))
133+
* add support for new React Native architecture ([39fd4e6](https://github.com/react-native-maps/react-native-maps/commit/39fd4e6e57cad141e640e4baf4ed3f60eccd6db4))
134+
* Enable new arch for the example project ([1a21f86](https://github.com/react-native-maps/react-native-maps/commit/1a21f862b3b781707ae88e44db501f7453e95ac1))
135+
136+
## [1.13.2](https://github.com/react-native-maps/react-native-maps/compare/v1.13.1...v1.13.2) (2024-04-13)
137+
138+
139+
### Bug Fixes
140+
141+
* **android:** googleMapOptions / initialising multiple maps on android is buggy ([#5034](https://github.com/react-native-maps/react-native-maps/issues/5034)) ([be28937](https://github.com/react-native-maps/react-native-maps/commit/be2893701f4d92e6e7d1b3917626c74352f75303))
142+
143+
## [1.13.1](https://github.com/react-native-maps/react-native-maps/compare/v1.13.0...v1.13.1) (2024-04-13)
144+
145+
146+
### Bug Fixes
147+
148+
* **android:** onSelect was crashing android ([#5032](https://github.com/react-native-maps/react-native-maps/issues/5032)) ([b3ce3fc](https://github.com/react-native-maps/react-native-maps/commit/b3ce3fc4731b86107ea205d9ddb4743443c9523b))
149+
150+
# [1.13.0](https://github.com/react-native-maps/react-native-maps/compare/v1.12.0...v1.13.0) (2024-04-01)
151+
152+
153+
### Features
154+
155+
* **google-init:** Improve Google Maps Initialisation on Android ([a1be51b](https://github.com/react-native-maps/react-native-maps/commit/a1be51bd882933da93dc50fcc7ae2219a1df58b4))
156+
157+
# [1.12.0](https://github.com/react-native-maps/react-native-maps/compare/v1.11.3...v1.12.0) (2024-03-29)
158+
159+
160+
### Features
161+
162+
* **google-maps:** add onSelect/onDeselect support fo google maps ([#4990](https://github.com/react-native-maps/react-native-maps/issues/4990)) ([b9fbe31](https://github.com/react-native-maps/react-native-maps/commit/b9fbe31bb1feca4281a3131cc2a78dd64cca96d3))
163+
164+
## [1.11.3](https://github.com/react-native-maps/react-native-maps/compare/v1.11.2...v1.11.3) (2024-03-11)
165+
166+
167+
### Bug Fixes
168+
169+
* AnimatedRegion types ([#4909](https://github.com/react-native-maps/react-native-maps/issues/4909)) ([5fd9ca6](https://github.com/react-native-maps/react-native-maps/commit/5fd9ca6dfb655145cfbf41f7f977855d8265b1f1))
170+
171+
## [1.11.2](https://github.com/react-native-maps/react-native-maps/compare/v1.11.1...v1.11.2) (2024-03-11)
172+
173+
174+
### Bug Fixes
175+
176+
* **iOS:** removing polylines on iOS with googleProvider ([#4973](https://github.com/react-native-maps/react-native-maps/issues/4973)) ([6603060](https://github.com/react-native-maps/react-native-maps/commit/66030603a1808ef2c055f0abe2ab02f5e47cdf4c))
177+
178+
## [1.11.1](https://github.com/react-native-maps/react-native-maps/compare/v1.11.0...v1.11.1) (2024-03-10)
179+
180+
181+
### Bug Fixes
182+
183+
* **android:** custom maker performance improvements when view tracking ([#4969](https://github.com/react-native-maps/react-native-maps/issues/4969)) ([f30c9d7](https://github.com/react-native-maps/react-native-maps/commit/f30c9d7624aa2f50afb7da97b6749fc45eb3125c))
184+
185+
# [1.11.0](https://github.com/react-native-maps/react-native-maps/compare/v1.10.4...v1.11.0) (2024-03-10)
186+
187+
188+
### Features
189+
190+
* **android:** add bridgeless support ([#4985](https://github.com/react-native-maps/react-native-maps/issues/4985)) ([3ad0265](https://github.com/react-native-maps/react-native-maps/commit/3ad0265cd2e1fc357713ae2b8de71249c8425b50))
191+
192+
## [1.10.4](https://github.com/react-native-maps/react-native-maps/compare/v1.10.3...v1.10.4) (2024-03-10)
193+
194+
195+
### Bug Fixes
196+
197+
* **android:** remove dangling map marker views causing memory leak ([#4992](https://github.com/react-native-maps/react-native-maps/issues/4992)) ([02ed7c0](https://github.com/react-native-maps/react-native-maps/commit/02ed7c04ec51789462a234cbddf0483d2c8116cd))
198+
3199
## [1.10.3](https://github.com/react-native-maps/react-native-maps/compare/v1.10.2...v1.10.3) (2024-02-18)
4200

5201

README.md

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ See [Setup Instructions for the Included Example Project](docs/examples-setup.md
1414

1515
## Compatibility
1616

17-
`react-native-maps` requires `react-native >= 0.64.3`.
17+
## React-Native Requirements
18+
19+
- **Version 1.14.0 and above**: Requires `react-native >= 0.74`.
20+
- **Versions below 1.14.0**: Require `react-native >= 0.64.3`.
1821

1922
## Component API
2023

@@ -129,7 +132,7 @@ Note: You can also pass the image binary data like `image={require('custom_pin.p
129132

130133
### Rendering a Marker with a custom view
131134

132-
Note: This has performance implications, if you wish for a simpler solution go with a custom image (save your self the head ache)
135+
Note: This has performance implications, if you wish for a simpler solution go with a custom image (save your self the headache)
133136

134137
```jsx
135138
<Marker coordinate={{latitude: latitude, longitude: longitude}}>
@@ -197,6 +200,59 @@ For Android: add the following line in your AndroidManifest.xml
197200

198201
For IOS: configure [App Transport Security](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW33) in your app
199202

203+
## React Native Configuration for Fabric / New Architecture
204+
205+
This library works with Fabric using the [New Renderer Interop Layer](https://github.com/reactwg/react-native-new-architecture/discussions/135)
206+
207+
There is a warning message that those steps are not necessary; but we couldn't get the example working without them so far.
208+
209+
### Configuration Steps
210+
211+
1. **Open your configuration file**: Locate the `react-native-config` file in your project directory.
212+
213+
2. **Add the following configuration**: Include the `unstable_reactLegacyComponentNames` array for both Android and iOS platforms as shown below:
214+
215+
```javascript
216+
module.exports = {
217+
project: {
218+
android: {
219+
unstable_reactLegacyComponentNames: [
220+
'AIRMap',
221+
'AIRMapCallout',
222+
'AIRMapCalloutSubview',
223+
'AIRMapCircle',
224+
'AIRMapHeatmap',
225+
'AIRMapLocalTile',
226+
'AIRMapMarker',
227+
'AIRMapOverlay',
228+
'AIRMapPolygon',
229+
'AIRMapPolyline',
230+
'AIRMapUrlTile',
231+
'AIRMapWMSTile',
232+
],
233+
},
234+
ios: {
235+
unstable_reactLegacyComponentNames: [
236+
'AIRMap',
237+
'AIRMapCallout',
238+
'AIRMapCalloutSubview',
239+
'AIRMapCircle',
240+
'AIRMapHeatmap',
241+
'AIRMapLocalTile',
242+
'AIRMapMarker',
243+
'AIRMapOverlay',
244+
'AIRMapPolygon',
245+
'AIRMapPolyline',
246+
'AIRMapUrlTile',
247+
'AIRMapWMSTile',
248+
],
249+
},
250+
},
251+
};
252+
```
253+
254+
checkout the example project to see it in action.
255+
200256
#### Tile Overlay using local tiles
201257

202258
Tiles can be stored locally within device using xyz tiling scheme and displayed as tile overlay as well. This is usefull especially for offline map usage when tiles are available for selected map region within device storage.
@@ -429,7 +485,7 @@ render() {
429485
Markers can also accept an `AnimatedRegion` value as a coordinate.
430486

431487
```jsx
432-
import Mapview, { AnimatedRegion, MarkerAnimated } from 'react-native-maps';
488+
import MapView, { AnimatedRegion, MarkerAnimated } from 'react-native-maps';
433489

434490
getInitialState() {
435491
return {

android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ buildscript {
1919

2020
apply plugin: 'com.android.library'
2121

22+
def isNewArchitectureEnabled() {
23+
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
24+
}
25+
2226
android {
27+
namespace "com.rnmaps.maps"
2328
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
2429
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
2530
namespace "com.rnmaps.maps"
@@ -30,6 +35,14 @@ android {
3035
defaultConfig {
3136
minSdkVersion safeExtGet('minSdkVersion', 21)
3237
targetSdkVersion safeExtGet('targetSdkVersion', 34)
38+
39+
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
40+
}
41+
packagingOptions {
42+
excludes = [
43+
"META-INF",
44+
"META-INF/**",
45+
]
3346
}
3447
}
3548

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.rnmaps.maps" >
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
</manifest>

0 commit comments

Comments
 (0)