From 892751154c6c1d8d3002a413898302f5f2004d9f Mon Sep 17 00:00:00 2001 From: Calin-Teodor Date: Mon, 4 Jul 2022 15:29:08 +0300 Subject: [PATCH] feat(etherpad/native): fixed header left close button --- .../components/native/SharedDocument.js | 23 ------------------- .../mobile/navigation/screenOptions.js | 16 +------------ 2 files changed, 1 insertion(+), 38 deletions(-) diff --git a/react/features/etherpad/components/native/SharedDocument.js b/react/features/etherpad/components/native/SharedDocument.js index 3aa96c9eb..b7a5d433b 100644 --- a/react/features/etherpad/components/native/SharedDocument.js +++ b/react/features/etherpad/components/native/SharedDocument.js @@ -3,13 +3,9 @@ import { View } from 'react-native'; import { WebView } from 'react-native-webview'; import { translate } from '../../../base/i18n'; -import { IconArrowBack } from '../../../base/icons'; import JitsiScreen from '../../../base/modal/components/JitsiScreen'; import { LoadingIndicator } from '../../../base/react'; import { connect } from '../../../base/redux'; -import HeaderNavigationButton - from '../../../mobile/navigation/components/HeaderNavigationButton'; -import { goBack } from '../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef'; import { getSharedDocumentUrl } from '../../functions'; import styles, { INDICATOR_COLOR } from './styles'; @@ -50,25 +46,6 @@ class SharedDocument extends PureComponent { this._renderLoading = this._renderLoading.bind(this); } - /** - * Implements React's {@link Component#componentDidMount()}. Invoked - * immediately after this component is mounted. - * - * @inheritdoc - * @returns {void} - */ - componentDidMount() { - const { navigation } = this.props; - - navigation.setOptions({ - headerLeft: () => ( - - ) - }); - } - /** * Implements React's {@link Component#render()}. * diff --git a/react/features/mobile/navigation/screenOptions.js b/react/features/mobile/navigation/screenOptions.js index 6b346d3df..8792c9657 100644 --- a/react/features/mobile/navigation/screenOptions.js +++ b/react/features/mobile/navigation/screenOptions.js @@ -268,21 +268,7 @@ export const gifsMenuOptions = presentationScreenOptions; /** * Screen options for shared document. */ -export const sharedDocumentScreenOptions = { - animation: 'slide_from_right', - headerBackTitleVisible: false, - headerShown: true, - headerStyle: { - backgroundColor: BaseTheme.palette.screen02Header - }, - headerTitleStyle: { - color: BaseTheme.palette.text01 - }, - orientation: Platform.select({ - ios: 'default', - android: 'all' - }) -}; +export const sharedDocumentScreenOptions = presentationScreenOptions; /** * Screen options for connecting screen.