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, Dec 22, 8:58 AM
Unknown Object (File)
Sun, Dec 22, 8:58 AM
Unknown Object (File)
Sun, Dec 22, 8:57 AM
Unknown Object (File)
Sun, Dec 22, 8:57 AM
Unknown Object (File)
Tue, Dec 17, 11:03 AM
Unknown Object (File)
Sat, Dec 14, 3:10 PM
Unknown Object (File)
Fri, Nov 29, 10:21 PM
Unknown Object (File)
Thu, Nov 28, 8:48 PM
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