Skip to content

[HOLD for payment 2023-09-11] [$2000] Fix issue with Map panning behavior #25732

Description

@hayata-suenaga

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.

  1. Pull the latest main

  2. Open NewDot on iOS simulator or Android emulator

  3. Go to any chat room where you can request money (i.e. IOU)

  4. Click the "+" icon next to the chat message text field. Click "Request Money" on the pop up menu that appears.

  5. Check "Distance" tab on the Right Hand Panel that appears

  6. Click the "Start" item from the list of waypoints.

  7. 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.
    Screenshot 2023-08-22 at 3 59 38 PM

  8. 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
  9. Click the "Stop" item from the list of waypoints.

  10. 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.

  11. 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)

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0167825771cb68ae59
  • Upwork Job ID: 1694128479546347520
  • Last Price Increase: 2023-08-24

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions