import * as React from 'react' ; import { View } from 'react-native' ; import { NavigationStackScreenOptions , NavigationScreenProps } from 'react-navigation' ; import PageContainer from 'containers/PageContainer' ; import PageTitleContainer from 'containers/PageTitleContainer' ; import NotificationsIconContainer from 'containers/NotificationsIconContainer' ; import DrawerButtonContainer from 'containers/DrawerButtonContainer' ; import styles from './styles' ; interface IScreenProps extends NavigationScreenProps < { } > { } interface INavigationOptions { navigationOptions : any ; navigation : any ; } class PageScreen extends React . Component < IScreenProps , object > { public static navigationOptions = ( { navigationOptions , navigation } ) : NavigationStackScreenOptions => { return { headerTitle : navigation . state . params . withGoHomeButton ? ( 'Notifications' ) : ( < PageTitleContainer style = { navigationOptions . headerTitleStyle } / > ) , headerBackTitle : null , headerRight : < NotificationsIconContainer />, headerLeft : < DrawerButtonContainer />, } ; } ; public render ( ) { return ( < View style = { styles . container } > < PageContainer /> < /View>); } } export default PageScreen ;