diff --git a/src/components/Appbar/AppbarContent.js b/src/components/Appbar/AppbarContent.js index 3159c7de..7ad85b60 100644 --- a/src/components/Appbar/AppbarContent.js +++ b/src/components/Appbar/AppbarContent.js @@ -1,7 +1,12 @@ /* @flow */ import * as React from 'react'; -import { View, StyleSheet, Platform } from 'react-native'; +import { + View, + StyleSheet, + Platform, + TouchableWithoutFeedback, +} from 'react-native'; import color from 'color'; import Text from '../Typography/Text'; @@ -32,6 +37,10 @@ type Props = $RemoveChildren & {| * Style for the subtitle. */ subtitleStyle?: any, + /** + * Function to execute on press. + */ + onPress?: () => mixed, style?: any, /** * @optional @@ -50,6 +59,7 @@ class AppbarContent extends React.Component { color: titleColor = black, subtitle, subtitleStyle, + onPress, style, titleStyle, theme, @@ -64,31 +74,34 @@ class AppbarContent extends React.Component { .string(); return ( - - - {title} - - {subtitle ? ( + + - {subtitle} + {title} - ) : null} - + {subtitle ? ( + + {subtitle} + + ) : null} + + ); } }