Skip to content

Commit a432a0d

Browse files
authored
Fix nitro import
## Pull request Please ensure this PR targets the **`dev` branch** and follows the project conventions. CI already runs linting, formatting, and build checks automatically. --- ### Before submitting - [x] This PR targets the `dev` branch (not `main`) - [x] Commit messages follow the semantic-release format - [x] No debug logs or sensitive data included --- ### Summary Adds `NitroModules` import to `ios/GoogleMapViewImpl.swift` and `ios/RNGoogleMapsPlusModule.swift`. --- ### Type of change - [ ] Feature - [x] Fix - [ ] Refactor - [ ] Internal / CI - [ ] Documentation --- ### Scope - [ ] Android - [x] iOS - [ ] Core - [ ] Example App - [ ] Docs --- ### Related --- ### Additional notes iOS build with Expo v54.0.22 was failing before the change. ``` ❌ (node_modules/react-native-google-maps-plus/ios/GoogleMapViewImpl.swift:408:8) 407 | resultIsFile: Bool > 408 | ) -> NitroModules.Promise<String?> { | ^ cannot find type 'NitroModules' in scope 409 | let promise = Promise<String?>() 410 | 411 | onMainAsync { ❌ (node_modules/react-native-google-maps-plus/ios/GoogleMapViewImpl.swift:409:19) 407 | resultIsFile: Bool 408 | ) -> NitroModules.Promise<String?> { 408 | ) -> NitroModules.Promise<String?> { > 409 | let promise = Promise<String?>() | ^ cannot find 'Promise' in scope 410 | 411 | onMainAsync { 412 | guard let mapView = self.mapView else { ❌ (node_modules/react-native-google-maps-plus/ios/GoogleMapViewImpl.swift:413:37) 411 | onMainAsync { 412 | guard let mapView = self.mapView else { > 413 | promise.resolve(withResult: nil) | ^ 'nil' requires a contextual type 414 | return 415 | } 416 | ```
2 parents f0e6635 + aedb186 commit a432a0d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ios/GoogleMapViewImpl.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import CoreLocation
22
import GoogleMaps
33
import GoogleMapsUtils
44
import UIKit
5+
import NitroModules
56

67
final class GoogleMapsViewImpl: UIView, GMSMapViewDelegate,
78
GMSIndoorDisplayDelegate {

ios/RNGoogleMapsPlusModule.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import NitroModules
2+
13
final class RNGoogleMapsPlusModule: HybridRNGoogleMapsPlusModuleSpec {
24
private let permissionHandler: PermissionHandler
35
private let locationHandler: LocationHandler

0 commit comments

Comments
 (0)