mg-library 1.0.480 → 1.0.482
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 +2 -2
- package/functions.js +10 -0
- package/package.json +1 -1
package/blocks.js
CHANGED
@@ -144,14 +144,14 @@ export function MGLogin(props) {
|
|
144
144
|
|
145
145
|
return (
|
146
146
|
<View style={{ flex: 1 }}>
|
147
|
-
<Layout style={[mgFunctionsLib.safeAreaViewStyleSheet(insets).safeAreaView, { display: 'flex', flexDirection: 'column', flexGrow:
|
147
|
+
<Layout style={[mgFunctionsLib.safeAreaViewStyleSheet(insets).safeAreaView, { display: 'flex', flexDirection: 'column', flexGrow: 1 }]}>
|
148
148
|
<View style={{ flexDirection: 'column', flexGrow: 1, justifyContent: 'center' }}>
|
149
149
|
<View style={{ flexDirection: 'column', alignItems: 'center', marginBottom: 100 }}>
|
150
150
|
<Image
|
151
151
|
source={require('./assets/clubonline.png')}
|
152
152
|
style={{ width: 300, height: 150 }} />
|
153
153
|
{!isKeyboardVisible &&
|
154
|
-
<View style={{ flexDirection: 'column', alignItems: 'center' }}>
|
154
|
+
<View style={{ marginHorizontal: 10, flexDirection: 'column', alignItems: 'center' }}>
|
155
155
|
<Text style={{ alignSelf: 'center', textAlign: 'center' }} category='h6'>{props.appDescription}</Text>
|
156
156
|
<Text style={{ alignSelf: 'center' }} category='p2'>{props.appVersion}</Text>
|
157
157
|
</View>
|
package/functions.js
CHANGED
@@ -154,6 +154,16 @@ export function safeAreaViewStyleSheet(insets) {
|
|
154
154
|
});
|
155
155
|
}
|
156
156
|
|
157
|
+
export function safeAreaViewForNavigatorHeaderStyleSheet(insets) {
|
158
|
+
return StyleSheet.create({
|
159
|
+
safeAreaView: {
|
160
|
+
paddingTop: insets.top,
|
161
|
+
paddingLeft: insets.left,
|
162
|
+
paddingRight: insets.right
|
163
|
+
}
|
164
|
+
});
|
165
|
+
}
|
166
|
+
|
157
167
|
export function getBasicStyleSheet() {
|
158
168
|
return StyleSheet.create({
|
159
169
|
availableArea: {
|