Page MenuHomePhabricator

[native] [16/34] ReactNav6: clean up Navigator props
ClosedPublic

Authored by ashoat on Oct 20 2022, 6:15 AM.
Tags
None
Referenced Files
F5805360: D5409.diff
Tue, Apr 15, 11:39 PM
Unknown Object (File)
Sat, Apr 12, 6:00 PM
Unknown Object (File)
Wed, Apr 9, 3:19 AM
Unknown Object (File)
Wed, Apr 9, 3:19 AM
Unknown Object (File)
Wed, Apr 9, 3:19 AM
Unknown Object (File)
Wed, Apr 9, 3:19 AM
Unknown Object (File)
Tue, Apr 1, 7:10 PM
Unknown Object (File)
Wed, Mar 19, 12:14 PM
Subscribers

Details

Summary
  1. Introduce new NavigatorProps type to Unify all of the different types that represent Navigator props
  2. Make sure screenListeners is included on NavigatorPropsBase and CreateNavigatorFactory, rather than only on CreateNavigator and the various *NavigatorProps types
  3. Introduce new ScreenListenersProp component with the same approach as ScreenOptionsProp
  4. Make corresponding changes to all three of our custom navigators, so that they match createStackNavigator upstream (defaultScreenOptions is still missing – will be addressed in a later diff)

Depends on D5408

Test Plan

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

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

This revision is now accepted and ready to land.Oct 20 2022, 11:35 AM