Page MenuHomePhabricator

[Flow202][native][skip-ci] [32/x] Fix type errors in OverlayNavigator
ClosedPublic

Authored by ashoat on Nov 27 2023, 12:50 AM.
Tags
None
Referenced Files
F4092604: D10016.id33898.diff
Sun, Feb 16, 5:50 PM
F4092603: D10016.id33660.diff
Sun, Feb 16, 5:50 PM
Unknown Object (File)
Fri, Feb 14, 5:02 PM
Unknown Object (File)
Thu, Feb 6, 10:59 PM
Unknown Object (File)
Sun, Feb 2, 12:48 AM
Unknown Object (File)
Wed, Jan 29, 8:34 AM
Unknown Object (File)
Sun, Jan 26, 4:20 AM
Unknown Object (File)
Mon, Jan 20, 4:59 AM
Subscribers
None

Details

Summary

Separating this out because it requires exporting some types, introducing some new ones, and a non-types change in one place.

NOTE: CI will fail on this diff. I considered the possibility of fixing Flow errors BEFORE upgrading Flow, but it wasn't possible... in some cases, the fixes to support the new version of Flow caused errors in the old version. I could have hidden these type errors with $FlowFixMe lines and then later revert those, but that seemed like too much busy work.

Depends on D10015

Test Plan

Confirm the Flow errors go away

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat created this revision.
native/navigation/overlay-navigator.react.js
164 ↗(On Diff #33660)

I had to add this check because route.params isn't parameterized here. React Navigation types don't really consider a scenario where a particular navigator requires its screens to have particular params

This revision is now accepted and ready to land.Nov 27 2023, 7:12 AM