|
@@ -2,11 +2,9 @@ import { StyleSheet, ViewStyle, TextStyle } from 'react-native';
|
2
|
2
|
|
3
|
3
|
interface Styles {
|
4
|
4
|
container: ViewStyle;
|
5
|
|
- errorContainer: ViewStyle;
|
6
|
5
|
errorText: TextStyle;
|
7
|
6
|
errorTextTitle: TextStyle;
|
8
|
|
- hidden: ViewStyle;
|
9
|
|
- loadingView: ViewStyle;
|
|
7
|
+ loadingOrErrorView: ViewStyle;
|
10
|
8
|
webView: ViewStyle;
|
11
|
9
|
loadingProgressBar: ViewStyle;
|
12
|
10
|
}
|
|
@@ -16,21 +14,14 @@ const styles = StyleSheet.create<Styles>({
|
16
|
14
|
flex: 1,
|
17
|
15
|
overflow: 'hidden',
|
18
|
16
|
},
|
19
|
|
- errorContainer: {
|
|
17
|
+ loadingOrErrorView: {
|
|
18
|
+ position: 'absolute',
|
20
|
19
|
flex: 1,
|
21
|
20
|
justifyContent: 'center',
|
22
|
21
|
alignItems: 'center',
|
23
|
|
- backgroundColor: 'white',
|
24
|
|
- },
|
25
|
|
- hidden: {
|
26
|
|
- height: 0,
|
27
|
|
- flex: 0, // disable 'flex:1' when hiding a View
|
28
|
|
- },
|
29
|
|
- loadingView: {
|
30
|
|
- flex: 1,
|
31
|
|
- justifyContent: 'center',
|
32
|
|
- alignItems: 'center',
|
33
|
|
- backgroundColor: 'white',
|
|
22
|
+ height: '100%',
|
|
23
|
+ width: '100%',
|
|
24
|
+ backgroundColor: 'white'
|
34
|
25
|
},
|
35
|
26
|
loadingProgressBar: {
|
36
|
27
|
height: 20,
|