Skip to content

Commit

Permalink
fix(ios,newarch): implement missing RNMBXLocationModule instance meth…
Browse files Browse the repository at this point in the history
…ods, disable bridgeless on example (#3529)
  • Loading branch information
mfazekas authored Jun 14, 2024
1 parent c05b9a2 commit 9f39dcc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
5 changes: 5 additions & 0 deletions example/ios/RNMapboxGLExample/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ - (NSURL *)bundleURL
#endif
}

- (BOOL)bridgelessEnabled
{
return NO;
}

@end
2 changes: 1 addition & 1 deletion ios/RNMBX/RNMBXLocationModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ class RNMBXLocationModule: RCTEventEmitter, LocationProviderRNMBXDelegate {
locationProvider.setDistanceFilter(minDisplacement)
}
}

@objc func setRequestsAlwaysUse(_ requestsAlwaysUse: Bool) {
if let locationProvider = locationProvider as? LocationProviderRNMBX {
locationProvider.setRequestsAlwaysUse(requestsAlwaysUse)
Expand Down
10 changes: 9 additions & 1 deletion ios/RNMBX/RNMBXLocationModuleV11.swift
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,15 @@ class RNMBXLocationModule: RCTEventEmitter {
throttler.waitBetweenEvents = nil
}
}


@objc func setRequestsAlwaysUse(_ requestsAlwaysUse: Bool) {
// V11TODO
}

@objc func simulateHeading(_ changesPerSecond: NSNumber, increment: NSNumber) {
// V11TODO
}

@objc
override func startObserving() {
super.startObserving()
Expand Down

0 comments on commit 9f39dcc

Please sign in to comment.