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

This commit is contained in:
Calin-Teodor 2022-07-04 15:29:08 +03:00 committed by Calinteodor
parent 935e4d3261
commit 892751154c
2 changed files with 1 additions and 38 deletions

View File

@ -3,13 +3,9 @@ import { View } from 'react-native';
import { WebView } from 'react-native-webview'; import { WebView } from 'react-native-webview';
import { translate } from '../../../base/i18n'; import { translate } from '../../../base/i18n';
import { IconArrowBack } from '../../../base/icons';
import JitsiScreen from '../../../base/modal/components/JitsiScreen'; import JitsiScreen from '../../../base/modal/components/JitsiScreen';
import { LoadingIndicator } from '../../../base/react'; import { LoadingIndicator } from '../../../base/react';
import { connect } from '../../../base/redux'; 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 { getSharedDocumentUrl } from '../../functions';
import styles, { INDICATOR_COLOR } from './styles'; import styles, { INDICATOR_COLOR } from './styles';
@ -50,25 +46,6 @@ class SharedDocument extends PureComponent<Props> {
this._renderLoading = this._renderLoading.bind(this); 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()}. * Implements React's {@link Component#render()}.
* *

View File

@ -268,21 +268,7 @@ export const gifsMenuOptions = presentationScreenOptions;
/** /**
* Screen options for shared document. * Screen options for shared document.
*/ */
export const sharedDocumentScreenOptions = { export const sharedDocumentScreenOptions = presentationScreenOptions;
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'
})
};
/** /**
* Screen options for connecting screen. * Screen options for connecting screen.