Skip to content

Commit 1880c84

Browse files
committed
feat(Navigation): headerRight can be a function
1 parent 29e95c5 commit 1880c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Navigation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface NavigationOptions {
2222
headerTruncatedBackTitle?: string;
2323
headerBackTitleStyle?: TextStyle;
2424
headerPressColorAndroid?: string;
25-
headerRight?: React.ReactElement<any> | null;
25+
headerRight?: React.ReactElement<any> | ((props: any) => React.ReactElement<any>) | null;
2626
headerStyle?: ViewStyle;
2727
headerForceInset?: any /*HeaderForceInset*/;
2828
headerBackground?: React.ReactElement<any> | renderFunction<any /*HeaderProps*/> | null;

0 commit comments

Comments
 (0)