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)
Tue, Nov 26, 5:23 AM
Unknown Object (File)
Tue, Nov 26, 5:23 AM
Unknown Object (File)
Tue, Nov 26, 5:22 AM
Unknown Object (File)
Nov 18 2024, 10:42 AM
Unknown Object (File)
Nov 15 2024, 3:00 PM
Unknown Object (File)
Nov 15 2024, 2:50 PM
Unknown Object (File)
Nov 15 2024, 12:18 PM
Unknown Object (File)
Nov 11 2024, 1:51 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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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