feat: add a canGoBack prop to header back button

This commit is contained in:
satyajit.happy
2019-07-17 14:19:00 +02:00
parent c9b2c4d686
commit 7c86cfa88f
2 changed files with 2 additions and 0 deletions

View File

@@ -140,6 +140,7 @@ export type HeaderBackButtonProps = {
onLabelLayout?: (e: LayoutChangeEvent) => void;
screenLayout?: Layout;
titleLayout?: Layout;
canGoBack?: boolean;
};
export type HeaderTitleProps = {

View File

@@ -313,6 +313,7 @@ export default class HeaderSegment extends React.Component<Props, State> {
screenLayout: layout,
titleLayout,
tintColor: headerTintColor,
canGoBack: Boolean(onGoBack),
})}
</Animated.View>
) : null}