|
@@ -12,6 +12,8 @@ import BaseTheme from '../../../base/ui/components/BaseTheme';
|
12
|
12
|
import InviteButton
|
13
|
13
|
from '../../../invite/components/add-people-dialog/native/InviteButton';
|
14
|
14
|
import { LargeVideo } from '../../../large-video/components';
|
|
15
|
+import HeaderNavigationButton
|
|
16
|
+ from '../../../mobile/navigation/components/HeaderNavigationButton';
|
15
|
17
|
import { navigate }
|
16
|
18
|
from '../../../mobile/navigation/components/lobby/LobbyNavigationContainerRef';
|
17
|
19
|
import { screen } from '../../../mobile/navigation/routes';
|
|
@@ -36,6 +38,25 @@ type Props = AbstractProps & {
|
36
|
38
|
* Implements a waiting screen that represents the participant being in the lobby.
|
37
|
39
|
*/
|
38
|
40
|
class LobbyScreen extends AbstractLobbyScreen<Props> {
|
|
41
|
+ /**
|
|
42
|
+ * Implements React's {@link Component#componentDidMount()}. Invoked
|
|
43
|
+ * immediately after this component is mounted.
|
|
44
|
+ *
|
|
45
|
+ * @inheritdoc
|
|
46
|
+ * @returns {void}
|
|
47
|
+ */
|
|
48
|
+ componentDidMount() {
|
|
49
|
+ const { navigation, t } = this.props;
|
|
50
|
+
|
|
51
|
+ navigation.setOptions({
|
|
52
|
+ headerLeft: () => (
|
|
53
|
+ <HeaderNavigationButton
|
|
54
|
+ label = { t('dialog.Cancel') }
|
|
55
|
+ onPress = { this._onCancel } />
|
|
56
|
+ )
|
|
57
|
+ });
|
|
58
|
+ }
|
|
59
|
+
|
39
|
60
|
/**
|
40
|
61
|
* Implements {@code PureComponent#render}.
|
41
|
62
|
*
|
|
@@ -292,16 +313,6 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {
|
292
|
313
|
{ t('lobby.enterPasswordButton') }
|
293
|
314
|
</Text>
|
294
|
315
|
</TouchableOpacity> }
|
295
|
|
- <TouchableOpacity
|
296
|
|
- onPress = { this._onCancel }
|
297
|
|
- style = { [
|
298
|
|
- styles.button,
|
299
|
|
- styles.cancelButton
|
300
|
|
- ] }>
|
301
|
|
- <Text style = { styles.cancelButtonText }>
|
302
|
|
- { t('dialog.Cancel') }
|
303
|
|
- </Text>
|
304
|
|
- </TouchableOpacity>
|
305
|
316
|
</View>
|
306
|
317
|
);
|
307
|
318
|
}
|