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)
Mar 5 2024, 7:43 AM
Unknown Object (File)
Mar 5 2024, 7:43 AM
Unknown Object (File)
Mar 5 2024, 7:43 AM
Unknown Object (File)
Mar 5 2024, 7:43 AM
Unknown Object (File)
Dec 20 2023, 6:57 PM
Unknown Object (File)
Dec 19 2023, 4:51 AM
Unknown Object (File)
Dec 17 2023, 12:56 AM
Unknown Object (File)
Dec 16 2023, 11:20 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