|
@@ -42,10 +42,34 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {
|
42
|
42
|
* @inheritdoc
|
43
|
43
|
*/
|
44
|
44
|
render() {
|
|
45
|
+ const { _aspectRatio } = this.props;
|
|
46
|
+ let contentStyles;
|
|
47
|
+ let largeVideoContainerStyles;
|
|
48
|
+ let contentContainerStyles;
|
|
49
|
+
|
|
50
|
+ if (_aspectRatio === ASPECT_RATIO_NARROW) {
|
|
51
|
+ largeVideoContainerStyles = styles.largeVideoContainer;
|
|
52
|
+ contentContainerStyles = styles.contentContainer;
|
|
53
|
+ } else {
|
|
54
|
+ contentStyles = styles.contentWide;
|
|
55
|
+ largeVideoContainerStyles = styles.largeVideoContainerWide;
|
|
56
|
+ contentContainerStyles = styles.contentContainerWide;
|
|
57
|
+ }
|
|
58
|
+
|
45
|
59
|
return (
|
46
|
|
- <>
|
47
|
|
- { this._renderLobby() }
|
48
|
|
- </>
|
|
60
|
+ <JitsiScreen
|
|
61
|
+ safeAreaInsets = { [ 'right' ] }
|
|
62
|
+ style = { styles.contentWrapper }>
|
|
63
|
+ <View style = { contentStyles }>
|
|
64
|
+ <View style = { largeVideoContainerStyles }>
|
|
65
|
+ <LargeVideo />
|
|
66
|
+ </View>
|
|
67
|
+ <View style = { contentContainerStyles }>
|
|
68
|
+ { this._renderContent() }
|
|
69
|
+ { this._renderToolbarButtons() }
|
|
70
|
+ </View>
|
|
71
|
+ </View>
|
|
72
|
+ </JitsiScreen>
|
49
|
73
|
);
|
50
|
74
|
}
|
51
|
75
|
|
|
@@ -73,8 +97,6 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {
|
73
|
97
|
|
74
|
98
|
_renderToolbarButtons: () => React$Element<*>;
|
75
|
99
|
|
76
|
|
- _renderLobby: () => React$Element<*>;
|
77
|
|
-
|
78
|
100
|
_onNavigateToLobbyChat: () => void;
|
79
|
101
|
|
80
|
102
|
/**
|
|
@@ -87,43 +109,6 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {
|
87
|
109
|
navigate(screen.lobby.chat);
|
88
|
110
|
}
|
89
|
111
|
|
90
|
|
- /**
|
91
|
|
- * Renders the lobby.
|
92
|
|
- *
|
93
|
|
- * @inheritdoc
|
94
|
|
- */
|
95
|
|
- _renderLobby() {
|
96
|
|
- const { _aspectRatio } = this.props;
|
97
|
|
- let contentStyles;
|
98
|
|
- let largeVideoContainerStyles;
|
99
|
|
- let contentContainerStyles;
|
100
|
|
-
|
101
|
|
- if (_aspectRatio === ASPECT_RATIO_NARROW) {
|
102
|
|
- largeVideoContainerStyles = styles.largeVideoContainer;
|
103
|
|
- contentContainerStyles = styles.contentContainer;
|
104
|
|
- } else {
|
105
|
|
- contentStyles = styles.contentWide;
|
106
|
|
- largeVideoContainerStyles = styles.largeVideoContainerWide;
|
107
|
|
- contentContainerStyles = styles.contentContainerWide;
|
108
|
|
- }
|
109
|
|
-
|
110
|
|
- return (
|
111
|
|
- <JitsiScreen
|
112
|
|
- safeAreaInsets = { [ 'right' ] }
|
113
|
|
- style = { styles.contentWrapper }>
|
114
|
|
- <View style = { contentStyles }>
|
115
|
|
- <View style = { largeVideoContainerStyles }>
|
116
|
|
- <LargeVideo />
|
117
|
|
- </View>
|
118
|
|
- <View style = { contentContainerStyles }>
|
119
|
|
- { this._renderContent() }
|
120
|
|
- { this._renderToolbarButtons() }
|
121
|
|
- </View>
|
122
|
|
- </View>
|
123
|
|
- </JitsiScreen>
|
124
|
|
- );
|
125
|
|
- }
|
126
|
|
-
|
127
|
112
|
/**
|
128
|
113
|
* Renders the joining (waiting) fragment of the screen.
|
129
|
114
|
*
|