Tracking issue for the nav-type workaround referenced at
app/src/navigation/types.ts:216:
// TODO: Add CrossTabNavProp once @react-navigation type constraints are resolved
Callers currently cast to the escape hatch, e.g.:
app/src/screens/ChapterScreen.tsx:84 — navigation as unknown as CrossTabNavigation
- (grep for other occurrences before closing)
Goal: a CrossTabNavProp<TabName, ScreenName> generic that composes NativeStackNavigationProp with BottomTabNavigationProp so screens can type .getParent()?.navigate('AmicusTab', {screen, params}) without casts.
Unblocks: every future cross-tab navigate call. Currently each new one adds another as unknown as that has to be greppable.
Tracking issue for the nav-type workaround referenced at
app/src/navigation/types.ts:216:// TODO: Add CrossTabNavProp once @react-navigation type constraints are resolvedCallers currently cast to the escape hatch, e.g.:
app/src/screens/ChapterScreen.tsx:84—navigation as unknown as CrossTabNavigationGoal: a
CrossTabNavProp<TabName, ScreenName>generic that composesNativeStackNavigationPropwithBottomTabNavigationPropso screens can type.getParent()?.navigate('AmicusTab', {screen, params})without casts.Unblocks: every future cross-tab navigate call. Currently each new one adds another
as unknown asthat has to be greppable.