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
F3349297: D10016.diff
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
Unknown Object (File)
Sep 6 2024, 2:31 AM
Unknown Object (File)
Sep 6 2024, 2:31 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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 24457
Build 210173: arc lint + arc unit

Event Timeline

ashoat created this revision.
native/navigation/overlay-navigator.react.js
164

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