rn: fix filling LoadConfigOverlay's background

pull/4135/head jitsi-meet_3694
Saúl Ibarra Corretgé 6 years ago committed by Saúl Ibarra Corretgé
parent 32a81b0be5
commit ccc5e19e3c
  1. 30
      react/features/overlay/components/native/LoadConfigOverlay.js
  2. 1
      react/features/overlay/components/native/styles.js

@ -1,7 +1,7 @@
// @flow // @flow
import React, { Component } from 'react'; import React, { Component } from 'react';
import { SafeAreaView, Text } from 'react-native'; import { SafeAreaView, Text, View } from 'react-native';
import { ColorSchemeRegistry } from '../../../base/color-scheme'; import { ColorSchemeRegistry } from '../../../base/color-scheme';
import { translate } from '../../../base/i18n'; import { translate } from '../../../base/i18n';
@ -53,23 +53,25 @@ class LoadConfigOverlay extends Component<Props> {
return ( return (
<OverlayFrame> <OverlayFrame>
<SafeAreaView <View
style = { [ style = { [
styles.loadingOverlayWrapper, styles.loadingOverlayWrapper,
_styles.loadingOverlayWrapper _styles.loadingOverlayWrapper
] }> ] }>
<LoadingIndicator <SafeAreaView>
color = { _styles.indicatorColor } <LoadingIndicator
size = 'large' color = { _styles.indicatorColor }
style = { styles.connectIndicator } /> size = 'large'
<Text style = { styles.connectIndicator } />
style = { [ <Text
styles.loadingOverlayText, style = { [
_styles.loadingOverlayText styles.loadingOverlayText,
] }> _styles.loadingOverlayText
{ this.props.t('connectingOverlay.joiningRoom') } ] }>
</Text> { this.props.t('connectingOverlay.joiningRoom') }
</SafeAreaView> </Text>
</SafeAreaView>
</View>
</OverlayFrame> </OverlayFrame>
); );
} }

@ -27,6 +27,7 @@ export default {
}, },
loadingOverlayWrapper: { loadingOverlayWrapper: {
...StyleSheet.absoluteFillObject,
alignItems: 'center', alignItems: 'center',
flex: 1, flex: 1,
flexDirection: 'column', flexDirection: 'column',

Loading…
Cancel
Save