mg-library 1.0.310 → 1.0.311

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.
Files changed (2) hide show
  1. package/blocks.js +34 -0
  2. package/package.json +1 -1
package/blocks.js ADDED
@@ -0,0 +1,34 @@
1
+ import { View } from 'react-native';
2
+ import { Text, Divider } from '@ui-kitten/components';
3
+ import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
4
+
5
+ export function MGSessionHeader(props) {
6
+ return (
7
+ <>
8
+ <View style={{ marginBottom: 10 }}>
9
+ <View style={{ display: 'flex', flexDirection: 'row', alignItems: 'stretch' }}>
10
+ <View style={{ flexGrow: 0.5, alignSelf: 'center' }}>
11
+ <Text category='h5' style={{ color: props.theme['color-primary-500'], marginLeft: 5 }}>{props.module}</Text>
12
+ </View>
13
+ <View style={{ flexGrow: 0.35, flexDirection: 'column', justifyContent: 'center' }}>
14
+ <Text style={{ alignSelf: 'flex-end', marginBottom: -5 }} category='h5'>{props.person.lastName}</Text>
15
+ <Text style={{ alignSelf: 'flex-end' }}>{props.person.firstName}</Text>
16
+ </View>
17
+ <View style={{ flexGrow: 0.15, flexDirection: 'column' }}>
18
+ <MaterialCommunityIcons name='account' size={40} style={{ alignSelf: 'center', color: theme['color-primary-700'] }} />
19
+ <Text category='c1' style={{ alignSelf: 'center', marginTop: -5 }}>{props.person.profile}</Text>
20
+ </View>
21
+ </View>
22
+ <CLDivider />
23
+ </View>
24
+ </>
25
+ );
26
+ }
27
+
28
+ export function MGDivider() {
29
+ return (
30
+ <>
31
+ <Divider style={{ height: 1, flexGrow: 1, alignSelf: 'stretch', backgroundColor: 'gray', marginTop: 10, marginBottom: 10 }} />
32
+ </>
33
+ );
34
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.310",
3
+ "version": "1.0.311",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {