I need this in the following diff, but I make some changes to it there. To make those changes more clear, I'm separating the introduction of this new libdef into its own diff.
I generated this with the following steps:
- cd native
- flow-typed install @react-navigation/core@5: Installs the latest version of the libdef I had introduced on flow-typed, but I haven't kept that updated unfortunately. Since I've updated the local versions of the other libdefs since then, step 4 was needed.
- mv flow-typed/npm/@react-navigation/core_v5.x.x.js flow-typed/npm/@react-navigation/core_v6.x.x.js: The version of the libdefs I have on flow-typed is for ReactNav 5. There have since been some changes, which I updated in the local libdefs.
- Open up the new libdef and copy in "SECTION 1" (the part that is mirrored across all of the libdefs) from another one of the libdefs (I used the one for @react-navigation/native, but they should all be identical).
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 D9986