Request location only when necessary in MapView#36761
Request location only when necessary in MapView#36761chiragsalian merged 8 commits intoExpensify:mainfrom
Conversation
| if (!shouldPanMapToCurrentPosition()) { | ||
| setCurrentPositionToInitialState(); | ||
| return; | ||
| } | ||
|
|
There was a problem hiding this comment.
@s77rt It is because currentPosition needs to bet set so that pending view is not displayed.
App/src/components/MapView/MapView.tsx
Line 145 in 6f3d8f6
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemweb-chrome.moviOS: Nativeios.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.mov |
|
Please add missing screenshots / videos |
Co-authored-by: Abdelhafidh Belalia <16493223+s77rt@users.noreply.github.com>
|
@s77rt Added all the videos! Sorry for the delay.. Android simulator was (and still is) having issues |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
|
@esh-g Can you please check #36761 (comment) |
@s77rt Replied! |
|
Made the change @s77rt! |
|
@esh-g Please run prettier (lint failing) |
Co-authored-by: Abdelhafidh Belalia <16493223+s77rt@users.noreply.github.com>
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/chiragsalian in version: 1.4.44-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|

Details
Fixed Issues
$ #36491
PROPOSAL: #36491 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2024-02-19.at.9.29.21.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-02-19.at.9.36.15.PM.mov
iOS: Native
Screen.Recording.2024-02-19.at.9.54.35.PM.mov
iOS: mWeb Safari
Screen.Recording.2024-02-19.at.9.41.18.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-17.at.8.17.27.PM.mov
MacOS: Desktop
Screen.Recording.2024-02-19.at.10.03.28.PM.mov