diff --git a/ComApp/src/App.js b/ComApp/src/App.js index fa9d90e..49afa7e 100644 --- a/ComApp/src/App.js +++ b/ComApp/src/App.js @@ -77,7 +77,7 @@ class App extends React.Component { name="InstallScreen" component={InstallScreen} options={(navigation, route) => ({ - headerTitle: () => this.LogoTitle(i18n.t('install.installation')), + headerTitle: () => this.LogoTitle(navigation, i18n.t('install.installation')), headerRight: () => ( ({ - headerTitle: () => this.LogoTitle(i18n.t('global.login')), + headerTitle: () => this.LogoTitle(navigation, i18n.t('global.login')), headerRight: () => ( ({ - headerTitle: () => this.LogoTitle(i18n.t('global.home')), + headerTitle: () => this.LogoTitle(navigation, i18n.t('global.home')), headerRight: () => ( @@ -171,20 +171,22 @@ class App extends React.Component { this.LogoTitle(i18n.t('global.synchronization')) - }} + options={(navigation, route) => ({ + headerTitle: () => this.LogoTitle(navigation, i18n.t('global.synchronization')) + })} /> this.LogoTitle(i18n.t('app.folders')) }} + options={(navigation, route) => ({ + headerTitle: () => this.LogoTitle(navigation, i18n.t('app.folders')) + })} /> ({ - headerTitle: () => this.LogoTitle(i18n.t('global.videos')), + headerTitle: () => this.LogoTitle(navigation, i18n.t('global.videos')), headerRight: () => ( this.setState({ searchTxt: text })} /> @@ -207,7 +209,7 @@ class App extends React.Component { name="VideoScreen" component={VideoScreen} options={(navigation, route) => ({ - headerTitle: () => this.LogoTitle(i18n.t('app.video')), + headerTitle: () => this.LogoTitle(navigation, i18n.t('app.video')), headerRight: () => this.SendEmail(), orientation: 'landscape' })} @@ -216,31 +218,37 @@ class App extends React.Component { name="PDFScreen" component={PDFScreen} options={(navigation, route) => ({ - headerTitle: () => this.LogoTitle('PDF'), + headerTitle: () => this.LogoTitle(navigation, 'PDF'), headerRight: () => this.SendEmail() })} /> this.LogoTitle(i18n.t('global.contacts')) }} + options={(navigation, route) => ({ + headerTitle: () => this.LogoTitle(navigation, i18n.t('global.contacts')) + })} initialParams={{ contactAdded: false }} /> this.LogoTitle(i18n.t('app.contact_details')) }} + options={(navigation, route) => ({ + headerTitle: () => this.LogoTitle(navigation, i18n.t('app.contact_details')) + })} /> this.LogoTitle(i18n.t('app.results_search')) }} + options={(navigation, route) => ({ + headerTitle: () => this.LogoTitle(navigation, i18n.t('app.results_search')) + })} /> ({ - headerTitle: () => this.LogoTitle(i18n.t('app.my_space')), + headerTitle: () => this.LogoTitle(navigation, i18n.t('app.my_space')), headerRight: () => ( - + { navigation.navigation.navigate('HomeScreen') }}> + + {title} );