application-amicale/native-base-theme/components/Separator.js

50 lines
1.2 KiB
JavaScript
Raw Normal View History

2019-06-25 22:20:24 +02:00
// @flow
import variable from './../variables/platform';
2020-01-28 20:07:21 +01:00
export default (variables /* : * */ = variable) => {
2019-06-25 22:20:24 +02:00
const theme = {
'.group': {
height: 50,
paddingVertical: variables.listItemPadding - 8,
paddingTop: variables.listItemPadding + 12,
'.bordered': {
height: 50,
paddingVertical: variables.listItemPadding - 8,
2020-01-28 20:07:21 +01:00
paddingTop: variables.listItemPadding + 12
}
2019-06-25 22:20:24 +02:00
},
'.bordered': {
'.noTopBorder': {
2020-01-28 20:07:21 +01:00
borderTopWidth: 0
2019-06-25 22:20:24 +02:00
},
'.noBottomBorder': {
2020-01-28 20:07:21 +01:00
borderBottomWidth: 0
2019-06-25 22:20:24 +02:00
},
height: 35,
paddingTop: variables.listItemPadding + 2,
paddingBottom: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
borderTopWidth: variables.borderWidth,
2020-01-28 20:07:21 +01:00
borderColor: variables.listBorderColor
2019-06-25 22:20:24 +02:00
},
'NativeBase.Text': {
fontSize: variables.tabBarTextSize - 2,
2020-01-28 20:07:21 +01:00
color: '#777'
2019-06-25 22:20:24 +02:00
},
'.noTopBorder': {
2020-01-28 20:07:21 +01:00
borderTopWidth: 0
2019-06-25 22:20:24 +02:00
},
'.noBottomBorder': {
2020-01-28 20:07:21 +01:00
borderBottomWidth: 0
2019-06-25 22:20:24 +02:00
},
height: 38,
backgroundColor: '#F0EFF5',
flex: 1,
justifyContent: 'center',
2020-01-28 20:07:21 +01:00
paddingLeft: variables.listItemPadding + 5
2019-06-25 22:20:24 +02:00
};
return theme;
};