HomePhabricator
Diffusion Comm a37506bc522d

[native] [10/34] ReactNav6: separate TabNavigationProp from TabNavigationHelpers

Description

[native] [10/34] ReactNav6: separate TabNavigationProp from TabNavigationHelpers

Summary:
We want to type setParams correctly for both the specific-screen and any-screen-on-a-navigator case. As a result, the type of setParams is incompatible between the two.

The previous diff handled Stack, which is used a lot in the app. This diff handles Tab, which is used less in the app... but since there are three ReactNav packages with Tab navigators, this diff involves more changes to the libdefs.

Depends on D5402

Test Plan: Flow + ran the app on my phone and played around with it

Reviewers: atul, tomek, bartek

Reviewed By: atul

Subscribers: abosh

Differential Revision: https://phab.comm.dev/D5403

Details