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
Unknown Object (File)
Sun, Nov 24, 1:02 AM
Unknown Object (File)
Fri, Nov 22, 10:07 PM
Unknown Object (File)
Fri, Nov 22, 5:35 PM
Unknown Object (File)
Wed, Nov 6, 7:17 AM
Unknown Object (File)
Oct 17 2024, 11:49 AM
Unknown Object (File)
Oct 17 2024, 11:49 AM
Unknown Object (File)
Oct 17 2024, 11:49 AM
Unknown Object (File)
Oct 17 2024, 11:49 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