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
F3249077: D5409.diff
Fri, Nov 15, 12:18 PM
Unknown Object (File)
Mon, Nov 11, 1:51 AM
Unknown Object (File)
Tue, Oct 29, 3:04 PM
Unknown Object (File)
Mon, Oct 28, 5:08 AM
Unknown Object (File)
Mon, Oct 28, 5:08 AM
Unknown Object (File)
Mon, Oct 28, 5:05 AM
Unknown Object (File)
Oct 1 2024, 5:23 AM
Unknown Object (File)
Sep 26 2024, 7:08 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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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