Repository navigation
Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Context
A new feature was added in this PR recently where we display a map. We discovered an issue with the map's behavior though. We need a fix as soon as possible.
We also introduced a new library for this map feature. The library's repo is here: https://github.com/Expensify/react-native-x-maps.
The map should zoom into an area when a single waypoint is passed. When several waypoints are passed, the map should pan out to fix all waypoints passed on map. These zoom in and pan out movements are not working on iOS and Android.
The last version of the library above is 1.0.10 and the version specified in App's package.json on the main branch is 1.0.9. But this should not be the cause of the issue, I believe
Related issues
Hint
The root cause of this issue might be inside react-native-x-maps. If you need to modify the library code and test changes in App, you can push changes in x-maps to a forked repo on GitHub and use the link of your branch on GitHub to install the changed code in your App. More info on this here
Action Performed:
This issue exists on the main branch. It should be re-producible on iOS and Android.
-
Pull the latest main
-
Open NewDot on iOS simulator or Android emulator
-
Go to any chat room where you can request money (i.e. IOU)
-
Click the "+" icon next to the chat message text field. Click "Request Money" on the pop up menu that appears.
-
Check "Distance" tab on the Right Hand Panel that appears
-
Click the "Start" item from the list of waypoints.
-
In the text field that appears in the next screen, type "88 Kearny Street". Click the first option "88 Kearny Street, San Francisco, CA, USA" that appears.

-
Check that the map doesn't move when it should zoom into a part of San Francisco. Check the video below for the expected behavior of the map (taken on Web).
Current behavior
Screen.Recording.2023-08-23.at.1.25.35.PM.mov
Expected behavior
Screen.Recording.2023-08-22.at.4.01.02.PM.mov
-
Click the "Stop" item from the list of waypoints.
-
In the text field that appears in the next screen, type "Golden Gate Park". Click the first option "88 Kearny Street, San Francisco, CA, USA" that appears.
-
Check that the map doesn't move at all when it should pan out to fix the new point added. Check the video below for the expected behavior of the map (taken on Web).
Current behavior
Screen.Recording.2023-08-23.at.1.28.41.PM.mov
Expected behavior
Screen.Recording.2023-08-22.at.4.08.56.PM.mov
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android / native
- Android / Chrome
- iOS / native
- iOS / Safari
- MacOS / Chrome / Safari
- MacOS / Desktop
Reproducible in staging?: Only on main
Reproducible in production?: Nop
Slack conversation: #25161 (comment)
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~0167825771cb68ae59
- Upwork Job ID: 1694128479546347520
- Last Price Increase: 2023-08-24
Activity
melvin-bot commentedon Aug 22, 2023
Triggered auto assignment to @NicMendonca (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Aug 22, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)[-]Fix issue with Map panning behavior[/-][+][$1000] Fix issue with Map panning behavior[/+]melvin-bot commentedon Aug 22, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0167825771cb68ae59
melvin-bot commentedon Aug 22, 2023
Current assignee @NicMendonca is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Aug 22, 2023
Current assignee @allroundexperts is eligible for the External assigner, not assigning anyone new.
hayata-suenaga commentedon Aug 22, 2023
@NicMendonca I created this issue from this Slack discussion. This is probably regression from a PR that I created for the Wave 5 Distance Request project. You don't have to reproduce this issue. I already confirmed that the issue exists.
I assigned @allroundexperts because they're very involved in the Wave 5 project and has the necessary context.
@allroundexperts if you come up with the solution, you can also create a PR yourself 🙇
ShogunFire commentedon Aug 23, 2023
I have an error:
"Mapbox error MapLoad error Failed to load glyphs:
HTTP status code 403"
hayata-suenaga commentedon Aug 23, 2023
thank you for reporting but this issue is known and the fix should be merged soon
69 remaining items
NicMendonca commentedon Sep 13, 2023
@allroundexperts don't forget to request payment!
@parasharrajat am I keeping this open until this happens?
allroundexperts commentedon Sep 13, 2023
Requested payment.
gegham-khachatryan commentedon Sep 13, 2023
@parasharrajat The changes you've requested aren't relevant to the current issue. Initially, this code was housed in a separate library, but I received a request to simply move it from the library to the app. However, addressing these changes is not within the scope of the current issue or my assigned task.
@NicMendonca
parasharrajat commentedon Sep 13, 2023
We have a standard for code being merged to the main repo. and any code suggestion to adhere to that is counted in the scope of each issue. I understand that you moved the code from some repo to our App but now it is part of the app so it should follow best practices. We skipped these suggestions in the main PR due to the urgency of the task at hand.
In general case, those changes should have been followed before merging the PR.
Anyways, I leave that decision to @luacmartins @allroundexperts
gegham-khachatryan commentedon Sep 13, 2023
I'd like to clarify that the repository is an internal company repository, not a third-party one. You can find it at the following URL: https://github.com/Expensify/react-native-x-maps
allroundexperts commentedon Sep 13, 2023
@parasharrajat I think @gegham-khachatryan has a very fair point. Initially, this ticket was just about fixing the map panning behaviour. However, as we went into the PR stage, it was decided that we should just simply stop using the library and include all its code in the main repository. In my opinion, the expectation was to just move the library code into the main repository without any refactoring of the actual library code.
I would also like to highlight that we went above and beyond the scope of this issue and made several other un-related fixes as well since this was such an important feature for our release. Ref, Ref
parasharrajat commentedon Sep 14, 2023
Thanks for making extra efforts to get this done quickly.
No worries, I will create the PR for those suggestions as soon as I get the time to do so.
allroundexperts commentedon Sep 14, 2023
We can create a follow up issue.
NicMendonca commentedon Sep 14, 2023
Cool! Thanks everyone!
@allroundexperts don't forget BZ checklist please!
parasharrajat commentedon Sep 15, 2023
Started a PR #27507 for follow up changes.
allroundexperts commentedon Sep 17, 2023
Checklist
Regression test steps
Do we 👍 or 👎 ?
NicMendonca commentedon Sep 18, 2023
Thanks!
JmillsExpensify commentedon Sep 21, 2023
$500 payment for @parasharrajat approved based on BZ summary.
JmillsExpensify commentedon Oct 5, 2023
$2,000 payment for @allroundexperts approved based on BZ summary.