|
@@ -9,8 +9,6 @@ import { LoadingIndicator } from '../../../base/react';
|
9
|
9
|
import { connect } from '../../../base/redux';
|
10
|
10
|
import { ASPECT_RATIO_NARROW } from '../../../base/responsive-ui';
|
11
|
11
|
import BaseTheme from '../../../base/ui/components/BaseTheme';
|
12
|
|
-import InviteButton
|
13
|
|
- from '../../../invite/components/add-people-dialog/native/InviteButton';
|
14
|
12
|
import { LargeVideo } from '../../../large-video/components';
|
15
|
13
|
import HeaderNavigationButton
|
16
|
14
|
from '../../../mobile/navigation/components/HeaderNavigationButton';
|
|
@@ -64,31 +62,29 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {
|
64
|
62
|
*/
|
65
|
63
|
render() {
|
66
|
64
|
const { _aspectRatio } = this.props;
|
67
|
|
- let contentStyles;
|
68
|
|
- let largeVideoContainerStyles;
|
|
65
|
+ let contentWrapperStyles;
|
69
|
66
|
let contentContainerStyles;
|
|
67
|
+ let largeVideoContainerStyles;
|
70
|
68
|
|
71
|
69
|
if (_aspectRatio === ASPECT_RATIO_NARROW) {
|
|
70
|
+ contentWrapperStyles = styles.contentWrapper;
|
72
|
71
|
largeVideoContainerStyles = styles.largeVideoContainer;
|
73
|
72
|
contentContainerStyles = styles.contentContainer;
|
74
|
73
|
} else {
|
75
|
|
- contentStyles = styles.contentWide;
|
|
74
|
+ contentWrapperStyles = styles.contentWrapperWide;
|
76
|
75
|
largeVideoContainerStyles = styles.largeVideoContainerWide;
|
77
|
76
|
contentContainerStyles = styles.contentContainerWide;
|
78
|
77
|
}
|
79
|
78
|
|
80
|
79
|
return (
|
81
|
80
|
<JitsiScreen
|
82
|
|
- safeAreaInsets = { [ 'right' ] }
|
83
|
|
- style = { styles.contentWrapper }>
|
84
|
|
- <View style = { contentStyles }>
|
85
|
|
- <View style = { largeVideoContainerStyles }>
|
86
|
|
- <LargeVideo />
|
87
|
|
- </View>
|
88
|
|
- <View style = { contentContainerStyles }>
|
89
|
|
- { this._renderContent() }
|
90
|
|
- { this._renderToolbarButtons() }
|
91
|
|
- </View>
|
|
81
|
+ style = { contentWrapperStyles }>
|
|
82
|
+ <View style = { largeVideoContainerStyles }>
|
|
83
|
+ <LargeVideo />
|
|
84
|
+ </View>
|
|
85
|
+ <View style = { contentContainerStyles }>
|
|
86
|
+ { this._renderContent() }
|
|
87
|
+ { this._renderToolbarButtons() }
|
92
|
88
|
</View>
|
93
|
89
|
</JitsiScreen>
|
94
|
90
|
);
|
|
@@ -137,7 +133,7 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {
|
137
|
133
|
*/
|
138
|
134
|
_renderJoining() {
|
139
|
135
|
return (
|
140
|
|
- <View style = { styles.formWrapper }>
|
|
136
|
+ <View>
|
141
|
137
|
<LoadingIndicator
|
142
|
138
|
color = { BaseTheme.palette.icon01 }
|
143
|
139
|
style = { styles.loadingIndicator } />
|
|
@@ -159,15 +155,11 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {
|
159
|
155
|
const { displayName } = this.state;
|
160
|
156
|
|
161
|
157
|
return (
|
162
|
|
- <View style = { styles.formWrapper }>
|
163
|
|
- <Text style = { styles.fieldLabel }>
|
164
|
|
- { t('lobby.nameField') }
|
165
|
|
- </Text>
|
166
|
|
- <TextInput
|
167
|
|
- onChangeText = { this._onChangeDisplayName }
|
168
|
|
- style = { styles.field }
|
169
|
|
- value = { displayName } />
|
170
|
|
- </View>
|
|
158
|
+ <TextInput
|
|
159
|
+ onChangeText = { this._onChangeDisplayName }
|
|
160
|
+ placeholder = { t('lobby.nameField') }
|
|
161
|
+ style = { styles.field }
|
|
162
|
+ value = { displayName } />
|
171
|
163
|
);
|
172
|
164
|
}
|
173
|
165
|
|
|
@@ -190,13 +182,11 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {
|
190
|
182
|
|
191
|
183
|
return (
|
192
|
184
|
<View style = { styles.formWrapper }>
|
193
|
|
- <Text style = { styles.fieldLabel }>
|
194
|
|
- { this.props.t('lobby.passwordField') }
|
195
|
|
- </Text>
|
196
|
185
|
<TextInput
|
197
|
186
|
autoCapitalize = 'none'
|
198
|
187
|
autoCompleteType = 'off'
|
199
|
188
|
onChangeText = { this._onChangePassword }
|
|
189
|
+ placeholder = { t('lobby.passwordField') }
|
200
|
190
|
secureTextEntry = { true }
|
201
|
191
|
style = { styles.field }
|
202
|
192
|
value = { this.state.password } />
|
|
@@ -263,8 +253,6 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {
|
263
|
253
|
styles = { styles.buttonStylesBorderless } />
|
264
|
254
|
<VideoMuteButton
|
265
|
255
|
styles = { styles.buttonStylesBorderless } />
|
266
|
|
- <InviteButton
|
267
|
|
- styles = { styles.buttonStylesBorderless } />
|
268
|
256
|
</View>
|
269
|
257
|
);
|
270
|
258
|
}
|