New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass camera move's reason to JS callbacks #3358
Conversation
To pass the enum value to the JS callbacks |
Since on iOS the map gives only a boolean, if it's a user gesture or not, then I adapted the same behaviour for android (it converts the integer to the same boolean) and renamed the property from |
c51d3ea
to
dfce41f
Compare
LGTM @christopherdro 🐽 |
@yairopro I know this is a very old PR 😅 but could you add the extra info in the docs too (the events seem to be missing the |
Oh you're right. I've forgotten the documentation. |
@rborn I updated the documentation. |
😻 |
🥳 Thanks |
Hi @rennehir |
This doesn't seem to be working with Apple Maps on iOS. I logged the
I get the property as expected on Android, for example:
I haven't tested this with Google Maps on iOS. |
Hi @juice49 |
Thanks @yairopro! I wasn't sure if this should work or not. |
@juice49 mind a PR with the doc change ? 😍 |
@juice49 merged 😻 |
Thanks @rborn! |
Sorry - earlier today I commented on the commit rather than the issue. I thus deleted the comment, and here it is in a more appropriate place: Just in case the developers of this commit missed it, some of us are not able to get this to work in version 0.28.0. isGesture is undefined. Any guidance? |
Looking through the source it appears the |
We are using Google Maps on both iOS and Android, and version 0.28.0. It's unclear if we're doing something wrong (and it's working for others) or if there is an issue with the feature. |
expo-ads-admob@10.1.0 expo-ads-facebook@10.1.0 expo-analytics-amplitude@10.2.0 expo-analytics-segment@10.2.0 expo-app-auth@10.2.0 expo-app-loading@1.1.0 expo-apple-authentication@3.2.0 expo-application@3.2.0 expo-auth-session@3.3.0 expo-av@9.2.0 expo-background-fetch@9.2.0 expo-barcode-scanner@10.2.0 expo-battery@5.0.0 expo-branch@4.2.0 expo-brightness@9.2.0 expo-calendar@9.2.0 expo-camera@11.1.1 expo-cellular@3.2.0 expo-clipboard@1.1.0 expo-constants@11.0.0 expo-contacts@9.2.0 expo-crypto@9.2.0 expo-dev-launcher@0.5.1 expo-device@3.3.0 expo-document-picker@9.2.0 expo-error-recovery@2.2.0 expo-face-detector@10.1.0 expo-facebook@11.2.0 expo-file-system@11.1.0 expo-firebase-analytics@4.1.0 expo-firebase-core@3.1.0 expo-firebase-recaptcha@1.4.2 expo-font@9.2.0 expo-gl-cpp@10.4.0 expo-gl@10.4.0 expo-google-app-auth@8.2.0 expo-google-sign-in@9.2.0 expo-haptics@10.1.0 expo-image-loader@2.2.0 expo-image-manipulator@9.2.0 expo-image-picker@10.2.0 expo-image@1.0.0-alpha.1 expo-in-app-purchases@10.2.0 expo-intent-launcher@9.1.0 expo-keep-awake@9.2.0 expo-linear-gradient@9.2.0 expo-linking@2.3.0 expo-local-authentication@11.1.0 expo-localization@10.2.0 expo-location@12.1.0 expo-mail-composer@10.2.0 expo-media-library@12.1.0 expo-module-template@9.1.0 expo-modules-autolinking@0.0.2 expo-modules-core@0.1.1 expo-network@3.2.0 expo-notifications@0.12.0 expo-payments-stripe@10.0.0 expo-permissions@12.1.0 expo-print@10.2.0 expo-random@11.2.0 expo-screen-capture@3.2.0 expo-screen-orientation@3.2.0 expo-secure-store@10.2.0 expo-sensors@10.2.0 expo-sharing@9.2.0 expo-sms@9.2.0 expo-speech@9.2.0 expo-splash-screen@0.11.0 expo-sqlite@9.2.0 expo-standard-web-crypto@1.1.0 expo-store-review@4.1.0 expo-task-manager@9.2.0 expo-tracking-transparency@1.1.0 expo-updates@0.7.0 expo-video-thumbnails@5.2.0 expo-web-browser@9.2.0 expo-yarn-workspaces@1.5.2 expo@42.0.0-alpha.0 jest-expo-enzyme@1.2.0 jest-expo-puppeteer@1.1.0 jest-expo@42.0.0 react-native-unimodules@0.14.1 unimodules-app-loader@2.2.0 unimodules-task-manager-interface@6.2.0 unimodules-test-core@0.4.0
@yairopro I just want to say thanks for the It would be cool to have this functionality on Apple Maps, too. Is there any chance of that? In our particular use case, now that an upcoming version of react-native-maps is going to include a manual theme toggle for Apple Maps, there is feature parity between the two (aside from isGesture). |
Hi @RyanTG But unfortunately, I am not able to help you since I am not an iOS developer. sorry |
Does any other open PR do the same thing?
There is a PR that solves likely the problem #2935, but with a workaround.
The problem we are trying to solve is to know the reason when the region has changed on the map.
Using
onPanDrag
, implemented by the PR #2935, is a non stable workaround. Because will would have to first store somewhere a boolean on theonPanDrag
, and use it onceonRegionChangeComplete
.What issue is this PR fixing?
Issue #1620 and #2756.
How did you test this PR?
I implemented and tested (on a real device) the code for android. The iOS part too has been implemented by my friend. And was tested on an emulator.