You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(location): eliminate NativeEventEmitter warning on Android with TurboModules (#4011)
Refactor locationManager.ts to use Platform.select for both iOS and Android
location manager initialization and event emitter creation. This prevents
the "new NativeEventEmitter() called without addListener method" warning
that occurs on Android when using TurboModules (new architecture).
Changes:
- Use Platform.select for MapboxLocationManager initialization
- Use Platform.select for LocationModuleEventEmitter with TurboModule detection
- Use LocationModuleEventEmitter existence to determine event system usage
Fixes#4000
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments