mg-library 1.0.603 → 1.0.605

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/functions.js +3 -3
  2. package/package.json +1 -1
package/functions.js CHANGED
@@ -13,12 +13,12 @@ import * as mgConstants from './constants.js';
13
13
 
14
14
  // Navigator
15
15
 
16
- export function navigatorHeader(insets, theme, onPressLogout, company) {
16
+ export function navigatorHeader(insets, colors, onPressLogout, company) {
17
17
  let companyDescription = company.description;
18
18
  if (companyDescription.length > 25)
19
19
  companyDescription = companyDescription.substring(0, 25) + '...';
20
20
  return (
21
- <Box style={[safeAreaViewForNavigatorHeaderStyleSheet(insets).safeAreaView, { backgroundColor: theme['color-primary-500'], flexDirection: 'column', justifyContent: 'flex-end' }]}>
21
+ <Box style={[safeAreaViewForNavigatorHeaderStyleSheet(insets).safeAreaView, { backgroundColor: colors.primary['500'], flexDirection: 'column', justifyContent: 'flex-end' }]}>
22
22
  <View style={{ flexDirection: 'row', flexGrow: 1 }}>
23
23
  <View style={{ flexGrow: 0.9, marginLeft: 10, alignSelf: 'center' }}>
24
24
  <MGText category='h5' style={{ color: 'white' }}>{companyDescription}</MGText>
@@ -197,7 +197,7 @@ export function safeAreaViewForNavigatorHeaderStyleSheet(insets) {
197
197
  export function getBasicStyleSheet() {
198
198
  return StyleSheet.create({
199
199
  availableArea: {
200
- flex: 1,
200
+ flexGrow: 1,
201
201
  marginTop: 5,
202
202
  marginBottom: 5,
203
203
  marginLeft: 5,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.603",
3
+ "version": "1.0.605",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {