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:
satyajit.happy
2019-11-02 08:10:45 +01:00
committed by Satyajit Sahoo
parent 3a4c38bb72
commit 57b411cea8
9 changed files with 113 additions and 100 deletions

View File

@@ -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;
/**