[Feature request] Missing MapView camera change event listeners in the Navigation SDK for React Native
Maintainer thường phản hồi trong vòng 5 ngày
@illuminati1911 đang làm issue này rồi.
Từ ngày 16/7/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 226
- Fork
- 39
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của googlemaps/react-native-navigation-sdk
-
[Support Request]: Status of Expo config plugin release (prebuild fails on 0.19.0)Có thể đã có người làm @jokerttu đã nhận 1 ngày trước. Đang mở
googlemaps/react-native-navigation-sdk#711 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[Bug]: In-navigation notification can't be stoppedCó thể đã có người làm @jokerttu đã nhận 8 ngày trước. Đang mởtriage me type: bug
googlemaps/react-native-navigation-sdk#696 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[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 costCó thể đã có người làm @illuminati1911 đã nhận 14 ngày trước. Đang mởtriage me type: bug
googlemaps/react-native-navigation-sdk#687 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[Bug]: iOS crash in GMSObjectDataCache Core Data save (fatal optimistic locking failure)Có thể làm lại được @illuminati1911 đã nhận 60 ngày trước và không có pull request nào đang mở. Đang mởnative sdk issue
googlemaps/react-native-navigation-sdk#647 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[Bug]: CarPlay map view never sets GMSMapViewOptions.screen, so the navigation header and footer are sized for the phoneCó thể làm lại được @jokerttu đã nhận 73 ngày trước và không có pull request nào đang mở. Đang mở
googlemaps/react-native-navigation-sdk#640 · 4 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của googlemaps/react-native-navigation-sdk
Issue tương tự
-
pending close triaging
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 74/100
anomalyco/opencode#63090 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-driven-qa bug claude Cosmetic
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-driven-qa bug claude Minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
linagora/twake-mail-admin#609 ·
Maintainer thường phản hồi trong vòng 1 ngày