|
|
|
@ -9,8 +9,6 @@ import { LoadingIndicator } from '../../../base/react'; |
|
|
|
|
import { connect } from '../../../base/redux'; |
|
|
|
|
import { ASPECT_RATIO_NARROW } from '../../../base/responsive-ui'; |
|
|
|
|
import BaseTheme from '../../../base/ui/components/BaseTheme'; |
|
|
|
|
import InviteButton |
|
|
|
|
from '../../../invite/components/add-people-dialog/native/InviteButton'; |
|
|
|
|
import { LargeVideo } from '../../../large-video/components'; |
|
|
|
|
import HeaderNavigationButton |
|
|
|
|
from '../../../mobile/navigation/components/HeaderNavigationButton'; |
|
|
|
@ -64,31 +62,29 @@ class LobbyScreen extends AbstractLobbyScreen<Props> { |
|
|
|
|
*/ |
|
|
|
|
render() { |
|
|
|
|
const { _aspectRatio } = this.props; |
|
|
|
|
let contentStyles; |
|
|
|
|
let largeVideoContainerStyles; |
|
|
|
|
let contentWrapperStyles; |
|
|
|
|
let contentContainerStyles; |
|
|
|
|
let largeVideoContainerStyles; |
|
|
|
|
|
|
|
|
|
if (_aspectRatio === ASPECT_RATIO_NARROW) { |
|
|
|
|
contentWrapperStyles = styles.contentWrapper; |
|
|
|
|
largeVideoContainerStyles = styles.largeVideoContainer; |
|
|
|
|
contentContainerStyles = styles.contentContainer; |
|
|
|
|
} else { |
|
|
|
|
contentStyles = styles.contentWide; |
|
|
|
|
contentWrapperStyles = styles.contentWrapperWide; |
|
|
|
|
largeVideoContainerStyles = styles.largeVideoContainerWide; |
|
|
|
|
contentContainerStyles = styles.contentContainerWide; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<JitsiScreen |
|
|
|
|
safeAreaInsets = { [ 'right' ] } |
|
|
|
|
style = { styles.contentWrapper }> |
|
|
|
|
<View style = { contentStyles }> |
|
|
|
|
<View style = { largeVideoContainerStyles }> |
|
|
|
|
<LargeVideo /> |
|
|
|
|
</View> |
|
|
|
|
<View style = { contentContainerStyles }> |
|
|
|
|
{ this._renderContent() } |
|
|
|
|
{ this._renderToolbarButtons() } |
|
|
|
|
</View> |
|
|
|
|
style = { contentWrapperStyles }> |
|
|
|
|
<View style = { largeVideoContainerStyles }> |
|
|
|
|
<LargeVideo /> |
|
|
|
|
</View> |
|
|
|
|
<View style = { contentContainerStyles }> |
|
|
|
|
{ this._renderContent() } |
|
|
|
|
{ this._renderToolbarButtons() } |
|
|
|
|
</View> |
|
|
|
|
</JitsiScreen> |
|
|
|
|
); |
|
|
|
@ -137,7 +133,7 @@ class LobbyScreen extends AbstractLobbyScreen<Props> { |
|
|
|
|
*/ |
|
|
|
|
_renderJoining() { |
|
|
|
|
return ( |
|
|
|
|
<View style = { styles.formWrapper }> |
|
|
|
|
<View> |
|
|
|
|
<LoadingIndicator |
|
|
|
|
color = { BaseTheme.palette.icon01 } |
|
|
|
|
style = { styles.loadingIndicator } /> |
|
|
|
@ -159,15 +155,11 @@ class LobbyScreen extends AbstractLobbyScreen<Props> { |
|
|
|
|
const { displayName } = this.state; |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<View style = { styles.formWrapper }> |
|
|
|
|
<Text style = { styles.fieldLabel }> |
|
|
|
|
{ t('lobby.nameField') } |
|
|
|
|
</Text> |
|
|
|
|
<TextInput |
|
|
|
|
onChangeText = { this._onChangeDisplayName } |
|
|
|
|
style = { styles.field } |
|
|
|
|
value = { displayName } /> |
|
|
|
|
</View> |
|
|
|
|
<TextInput |
|
|
|
|
onChangeText = { this._onChangeDisplayName } |
|
|
|
|
placeholder = { t('lobby.nameField') } |
|
|
|
|
style = { styles.field } |
|
|
|
|
value = { displayName } /> |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -190,13 +182,11 @@ class LobbyScreen extends AbstractLobbyScreen<Props> { |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<View style = { styles.formWrapper }> |
|
|
|
|
<Text style = { styles.fieldLabel }> |
|
|
|
|
{ this.props.t('lobby.passwordField') } |
|
|
|
|
</Text> |
|
|
|
|
<TextInput |
|
|
|
|
autoCapitalize = 'none' |
|
|
|
|
autoCompleteType = 'off' |
|
|
|
|
onChangeText = { this._onChangePassword } |
|
|
|
|
placeholder = { t('lobby.passwordField') } |
|
|
|
|
secureTextEntry = { true } |
|
|
|
|
style = { styles.field } |
|
|
|
|
value = { this.state.password } /> |
|
|
|
@ -263,8 +253,6 @@ class LobbyScreen extends AbstractLobbyScreen<Props> { |
|
|
|
|
styles = { styles.buttonStylesBorderless } /> |
|
|
|
|
<VideoMuteButton |
|
|
|
|
styles = { styles.buttonStylesBorderless } /> |
|
|
|
|
<InviteButton |
|
|
|
|
styles = { styles.buttonStylesBorderless } /> |
|
|
|
|
</View> |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|