Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(etherpad/native): fixed header left close button

Calin-Teodor892751154c6c
diff --git a/react/features/etherpad/components/native/SharedDocument.js b/react/features/etherpad/components/native/SharedDocument.js
index 3aa96c9eba..b7a5d433b9 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<Props> {
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: () => (
- <HeaderNavigationButton
- onPress = { goBack }
- src = { IconArrowBack } />
- )
- });
- }
-
/**
* Implements React's {@link Component#render()}.
*
diff --git a/react/features/mobile/navigation/screenOptions.js b/react/features/mobile/navigation/screenOptions.js
index 6b346d3df3..8792c9657b 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.