mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 20:35:19 +08:00
refactor: replace XComponent props in favor of render callbacks
Making these props components makes it impossible pass additional props to them from the parent component. Render callbacks are more dynamic and flexible for this case
This commit is contained in:
committed by
Satyajit Sahoo
parent
3a4c38bb72
commit
57b411cea8
@@ -249,7 +249,6 @@ export type StackNavigationOptions = StackHeaderOptions &
|
||||
title?: string;
|
||||
/**
|
||||
* Function that given `HeaderProps` returns a React Element to display as a header.
|
||||
* Setting to `null` hides header.
|
||||
*/
|
||||
header?: (props: StackHeaderProps) => React.ReactNode;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user