@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.
- package/components/NewsDetail/styles.js +75 -75
- package/package.json +1 -1
- package/views/Search/index.js +1 -3
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import {Dimensions} from
|
|
1
|
+
import { Dimensions } from 'react-native'
|
|
2
2
|
|
|
3
|
-
export default function(theme) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
package/views/Search/index.js
CHANGED
|
@@ -123,9 +123,7 @@ function SearchView(props) {
|
|
|
123
123
|
onSubmitEditing={() => _onPressButton()}
|
|
124
124
|
onIconPress={() => _onPressButton()}
|
|
125
125
|
onChangeText={setSearchString}
|
|
126
|
-
icon={
|
|
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}
|