@olea-bps/base 1.1.7 → 1.1.8

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.
@@ -1,77 +1,77 @@
1
- import {Dimensions} from "react-native";
1
+ import { Dimensions } from 'react-native'
2
2
 
3
- export default function(theme) {
4
- const height = Dimensions.get('window').height;
5
- const width = Dimensions.get('window').width;
6
- return {
7
- overflow: {
8
- backgroundColor: theme.colors.overlayColor,
9
- },
10
- image: {
11
- position: 'absolute',
12
- top: 0,
13
- left: 0,
14
- right: 0,
15
- width: null,
16
- resizeMode: 'cover',
17
- },
18
- container: {
19
- flex: 1,
20
- overflow: 'hidden'
21
- },
22
- containerInner: {
23
- flex: 1
24
- },
25
- containerContent: {
26
- backgroundColor: theme.colors.contentBackground,
27
- flex: 1,
28
- paddingHorizontal: 5,
29
- paddingVertical: 20,
30
- minHeight: height * 1.25 // To make sure the animation won't break / stop
31
- },
32
- activity: {
33
- marginTop: 20
34
- },
35
- badges: {
36
- flexDirection: 'row',
37
- flexWrap: 'wrap',
38
- paddingHorizontal: 10
39
- },
40
- badge: {
41
- marginRight: 5,
42
- marginBottom: 5
43
- },
44
- title: {
45
- paddingLeft: 10,
46
- fontSize: theme.fontSizes.title,
47
- lineHeight: theme.lineHeights.titleBig
48
- },
49
- bar: {
50
- alignItems: 'flex-start',
51
- justifyContent: 'center',
52
- position: 'absolute',
53
- top: 5,
54
- left: 0,
55
- right: 0,
56
- },
57
- barText: {
58
- color: theme.colors.primaryText,
59
- ...theme.fonts.bold,
60
- },
61
- newsContent : {
62
- marginVertical: theme.paddings.default,
63
- marginHorizontal: theme.paddings.small,
64
- width: width - (2 * theme.paddings.small)
65
- },
66
- newsContentText: {
67
- fontSize: theme.fontSizes.m
68
- },
69
- imageDesc: {
70
- backgroundColor: theme.colors.overlayColor,
71
- color: theme.colors.primaryText,
72
- paddingVertical: 2,
73
- paddingHorizontal: theme.paddings.small,
74
- fontSize: theme.fontSizes.xs
75
- }
76
- };
3
+ export default function (theme) {
4
+ const height = Dimensions.get('window').height
5
+ const width = Dimensions.get('window').width
6
+ return {
7
+ overflow: {
8
+ backgroundColor: theme.colors.overlayColor
9
+ },
10
+ image: {
11
+ position: 'absolute',
12
+ top: 0,
13
+ left: 0,
14
+ right: 0,
15
+ width: null,
16
+ resizeMode: 'cover'
17
+ },
18
+ container: {
19
+ flex: 1,
20
+ overflow: 'hidden'
21
+ },
22
+ containerInner: {
23
+ flex: 1
24
+ },
25
+ containerContent: {
26
+ backgroundColor: theme.colors.contentBackground,
27
+ flex: 1,
28
+ paddingHorizontal: 5,
29
+ paddingVertical: 20,
30
+ minHeight: height // enough space for short news without excessive whitespace
31
+ },
32
+ activity: {
33
+ marginTop: 20
34
+ },
35
+ badges: {
36
+ flexDirection: 'row',
37
+ flexWrap: 'wrap',
38
+ paddingHorizontal: 10
39
+ },
40
+ badge: {
41
+ marginRight: 5,
42
+ marginBottom: 5
43
+ },
44
+ title: {
45
+ paddingLeft: 10,
46
+ fontSize: theme.fontSizes.title,
47
+ lineHeight: theme.lineHeights.titleBig
48
+ },
49
+ bar: {
50
+ alignItems: 'flex-start',
51
+ justifyContent: 'center',
52
+ position: 'absolute',
53
+ top: 5,
54
+ left: 0,
55
+ right: 0
56
+ },
57
+ barText: {
58
+ color: theme.colors.primaryText,
59
+ ...theme.fonts.bold
60
+ },
61
+ newsContent: {
62
+ marginVertical: theme.paddings.default,
63
+ marginHorizontal: theme.paddings.small,
64
+ width: width - (2 * theme.paddings.small)
65
+ },
66
+ newsContentText: {
67
+ fontSize: theme.fontSizes.m
68
+ },
69
+ imageDesc: {
70
+ backgroundColor: theme.colors.overlayColor,
71
+ color: theme.colors.primaryText,
72
+ paddingVertical: 2,
73
+ paddingHorizontal: theme.paddings.small,
74
+ fontSize: theme.fontSizes.xs
75
+ }
76
+ }
77
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olea-bps/base",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "OLEA base library",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -123,9 +123,7 @@ function SearchView(props) {
123
123
  onSubmitEditing={() => _onPressButton()}
124
124
  onIconPress={() => _onPressButton()}
125
125
  onChangeText={setSearchString}
126
- icon={(props) =>
127
- <IconsOpenasist icon={"search"} size={32} color={colors.icon} />
128
- }
126
+ icon={props => <IconsOpenasist {...props} icon={'search'} color={colors.icon} />}
129
127
  style={styles.searchBar}
130
128
  inputStyle={styles.searchBarInput}
131
129
  value={searchString}