Page MenuHomePhabricator

[native] Fix types in navigate call inside ThreadSettingsMediaGallery
ClosedPublic

Authored by ashoat on Mar 1 2025, 11:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 7, 5:55 AM
Unknown Object (File)
Mon, Apr 7, 5:54 AM
Unknown Object (File)
Mon, Apr 7, 5:39 AM
Unknown Object (File)
Sun, Apr 6, 12:44 AM
Unknown Object (File)
Tue, Apr 1, 8:10 PM
Unknown Object (File)
Tue, Apr 1, 4:19 PM
Unknown Object (File)
Thu, Mar 27, 4:51 AM
Unknown Object (File)
Mon, Mar 17, 8:58 PM
Subscribers

Details

Summary

While investigating ENG-10293, I discovered that Flow was failing to typecheck the params in the navigate call here.

Two things had to be fixed:

  1. verticalBounds isn't always set at the time of this call. ENG-10293 happens when it's not set, and we can improve the error message in that case with an invariant here.
  2. The item being passed here is of the wrong type, and in fact we don't have the right item to pass in here. The prior diff made it possible to skip that param, and in this diff we simply remove it.

Depends on D14426

Test Plan

Flow

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/imagemodaltypes
Lint
No Lint Coverage
Unit
No Test Coverage