[Feature request] Missing MapView camera change event listeners in the Navigation SDK for React Native
I maintainer di solito rispondono entro 5 giorni
@illuminati1911 ci sta già lavorando.
Dal 16/7/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Is there an existing issue for this?
- I have searched the existing issues
Description of the bug
I'm trying to detect camera movement events (e.g. onCameraIdle, onCameraMove) using the Navigation SDK for React Native, but these listeners don't appear to be exposed in the current version. I’ve checked the documentation and tried using mapViewCallbacks, but no camera-related events are triggered.
Would it be possible to expose these listeners or provide an alternative way to track camera changes?
React Native version
0.73.6
React version
18.2.0
Package version
0.9.3
Native SDK versions
- I haven't changed the version of the native SDKs
React Native Doctor Output
$ npx react-native doctor
⠴ Running diagnostics...'"adb"' is not recognized as an internal or external command,
operable program or batch file.
Common
✓ Node.js - Required to execute JavaScript code
✓ npm - Required to install NPM dependencies
● Metro - Metro Bundler is not running
Android
✖ Adb - No devices and/or emulators connected. Please create emulator with Android Studio or connect Android device.
✖ JDK - Required to compile Java code
- Version found: 11.0.16.1
- Version supported: >= 17 <= 20
✖ Android Studio - Required for building and installing your app on Android
✖ ANDROID_HOME - Environment variable that points to your Android SDK installation
✓ Gradlew - Build tool required for Android builds
✖ Android SDK - Required for building and installing your app on Android - Versions found: N/A
- Version supported: .b34.0.0
Errors: 5
Warnings: 1
Steps to reproduce
Add a component to your screen.
- Pass the following mapViewCallbacks:
<MapView
mapViewCallbacks={{
onCameraMoveStarted: (reason) => {
console.log('Camera move started:', reason);
},
onCameraMove: () => {
console.log('Camera is moving');
},
onCameraIdle: () => {
console.log('Camera is idle');
},
}}
onMapViewControllerCreated={setMapViewController}
/>
-
Interact with the map by dragging or zooming.
-
Observe the console
Expected vs Actual Behavior
<MapView
mapViewCallbacks={{
onCameraMoveStarted: (reason) => {
console.log('Camera move started:', reason);
},
onCameraMove: () => {
console.log('Camera is moving');
},
onCameraIdle: () => {
console.log('Camera is idle');
},
}}
onMapViewControllerCreated={setMapViewController}
/>
The following logs should be printed during user interaction:
- Camera move started: [reason]
- Camera is moving
- Camera is idle
Code Sample
<MapView
mapViewCallbacks={{
onCameraMoveStarted: (reason) => {
console.log('Camera move started:', reason);
},
onCameraMove: () => {
console.log('Camera is moving');
},
onCameraIdle: () => {
console.log('Camera is idle');
},
}}
onMapViewControllerCreated={setMapViewController}
/>
Additional Context
No response
- Lingua principale
- TypeScript
- Stelle
- 226
- Fork
- 39
- Merge medio
- 1g 20h
- PR unite (30g)
- 7
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di googlemaps/react-native-navigation-sdk
-
[Support Request]: Status of Expo config plugin release (prebuild fails on 0.19.0)Forse già presa @jokerttu l’ha presa 1 giorno fa. Aperta
googlemaps/react-native-navigation-sdk#711 · 1 assegnatario ·
I maintainer di solito rispondono entro 5 giorni
-
[Bug]: In-navigation notification can't be stoppedForse già presa @jokerttu l’ha presa 8 giorni fa. Apertatriage me type: bug
googlemaps/react-native-navigation-sdk#696 · 1 assegnatario ·
I maintainer di solito rispondono entro 5 giorni
-
[Bug]: [iOS] Navigation SDK init/quota retry loop pins the main thread; React Native's Settings module and addMarker's temporary GMSMarker add to the costForse già presa @illuminati1911 l’ha presa 14 giorni fa. Apertatriage me type: bug
googlemaps/react-native-navigation-sdk#687 · 1 assegnatario ·
I maintainer di solito rispondono entro 5 giorni
-
[Bug]: iOS crash in GMSObjectDataCache Core Data save (fatal optimistic locking failure)Forse di nuovo libera @illuminati1911 l’ha presa 60 giorni fa e non c’è nessuna pull request aperta. Apertanative sdk issue
googlemaps/react-native-navigation-sdk#647 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 5 giorni
-
[Bug]: CarPlay map view never sets GMSMapViewOptions.screen, so the navigation header and footer are sized for the phoneForse di nuovo libera @jokerttu l’ha presa 73 giorni fa e non c’è nessuna pull request aperta. Aperta
googlemaps/react-native-navigation-sdk#640 · 4 commenti · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 5 giorni
Tutte le issue di googlemaps/react-native-navigation-sdk
Issue simili
-
pending close triaging
Difficoltà 1/5 1-3 ore Idoneità per principianti 74/100
anomalyco/opencode#63090 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
ai-driven-qa bug claude Cosmetic
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
ai-driven-qa bug claude Minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
linagora/twake-mail-admin#609 ·
I maintainer di solito rispondono entro 1 giorno