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
Unknown Object (File)
Fri, Jan 3, 8:11 AM
Unknown Object (File)
Mon, Dec 30, 8:55 AM
Unknown Object (File)
Fri, Dec 27, 5:18 PM
Unknown Object (File)
Fri, Dec 27, 5:18 PM
Unknown Object (File)
Fri, Dec 27, 5:16 PM
Unknown Object (File)
Fri, Dec 27, 4:57 PM
Unknown Object (File)
Nov 26 2024, 5:23 AM
Unknown Object (File)
Nov 26 2024, 5:23 AM
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