mg-library 1.0.312 → 1.0.314
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocks.js +10 -2
- package/package.json +1 -1
package/blocks.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { View } from 'react-native';
|
|
1
|
+
import { View, ActivityIndicator } from 'react-native';
|
|
2
2
|
import { Text, Divider } from '@ui-kitten/components';
|
|
3
3
|
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@ export function MGSessionHeader(props) {
|
|
|
15
15
|
<Text style={{ alignSelf: 'flex-end' }}>{props.person.firstName}</Text>
|
|
16
16
|
</View>
|
|
17
17
|
<View style={{ flexGrow: 0.15, flexDirection: 'column' }}>
|
|
18
|
-
<MaterialCommunityIcons name='account' size={40} style={{ alignSelf: 'center', color: theme['color-primary-700'] }} />
|
|
18
|
+
<MaterialCommunityIcons name='account' size={40} style={{ alignSelf: 'center', color: props.theme['color-primary-700'] }} />
|
|
19
19
|
<Text category='c1' style={{ alignSelf: 'center', marginTop: -5 }}>{props.person.profile}</Text>
|
|
20
20
|
</View>
|
|
21
21
|
</View>
|
|
@@ -31,4 +31,12 @@ export function MGDivider() {
|
|
|
31
31
|
<Divider style={{ height: 1, flexGrow: 1, alignSelf: 'stretch', backgroundColor: 'gray', marginTop: 10, marginBottom: 10 }} />
|
|
32
32
|
</>
|
|
33
33
|
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function MGActivityIndicator(props) {
|
|
37
|
+
return (
|
|
38
|
+
<View style={{ flex: 1, flexDirection: 'column', justifyContent: 'center', alignContent: 'center' }}>
|
|
39
|
+
<ActivityIndicator size="large" color={props.theme['color-primary-500']} />
|
|
40
|
+
</View>
|
|
41
|
+
)
|
|
34
42
|
}
|