File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
versioned_docs/version-7.x Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -213,12 +213,29 @@ type TabNavigationEventMap = {
213
213
};
214
214
};
215
215
216
+ // The type of the navigation object for each screen
217
+ type TabNavigationProp<
218
+ ParamList extends ParamListBase,
219
+ RouteName extends keyof ParamList = keyof ParamList,
220
+ NavigatorID extends string | undefined = undefined ,
221
+ > = NavigationProp<
222
+ ParamList,
223
+ RouteName,
224
+ NavigatorID ,
225
+ TabNavigationState< ParamList> ,
226
+ TabNavigationOptions,
227
+ TabNavigationEventMap
228
+ > &
229
+ TabActionHelpers< ParamList> ;
230
+
216
231
// The props accepted by the component is a combination of 3 things
217
232
type Props = DefaultNavigatorOptions<
218
233
ParamListBase,
234
+ string | undefined ,
219
235
TabNavigationState< ParamListBase> ,
220
236
TabNavigationOptions,
221
- TabNavigationEventMap
237
+ TabNavigationEventMap,
238
+ TabNavigationProp< ParamListBase>
222
239
> &
223
240
TabRouterOptions &
224
241
TabNavigationConfig;
You can’t perform that action at this time.
0 commit comments