2019-04-18 20:57:35 +00:00
|
|
|
import { StyleSheet, PixelRatio } from 'react-native';
|
|
|
|
|
|
|
|
import sharedStyles from '../../views/Styles';
|
|
|
|
|
|
|
|
export const ROW_HEIGHT = 75 * PixelRatio.getFontScale();
|
2019-07-15 17:24:48 +00:00
|
|
|
export const ACTION_WIDTH = 80;
|
|
|
|
export const SMALL_SWIPE = ACTION_WIDTH / 2;
|
|
|
|
export const LONG_SWIPE = ACTION_WIDTH * 3;
|
2019-04-18 20:57:35 +00:00
|
|
|
|
|
|
|
export default StyleSheet.create({
|
|
|
|
container: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center',
|
2019-07-15 17:24:48 +00:00
|
|
|
paddingLeft: 14,
|
2019-04-18 20:57:35 +00:00
|
|
|
height: ROW_HEIGHT
|
|
|
|
},
|
|
|
|
centerContainer: {
|
|
|
|
flex: 1,
|
|
|
|
paddingVertical: 10,
|
|
|
|
paddingRight: 14,
|
2019-12-11 23:01:12 +00:00
|
|
|
borderBottomWidth: StyleSheet.hairlineWidth
|
2019-04-18 20:57:35 +00:00
|
|
|
},
|
|
|
|
title: {
|
|
|
|
flex: 1,
|
|
|
|
fontSize: 17,
|
|
|
|
lineHeight: 20,
|
|
|
|
...sharedStyles.textMedium
|
|
|
|
},
|
|
|
|
alert: {
|
|
|
|
...sharedStyles.textSemibold
|
|
|
|
},
|
|
|
|
row: {
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'flex-start'
|
|
|
|
},
|
|
|
|
titleContainer: {
|
|
|
|
width: '100%',
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
date: {
|
|
|
|
fontSize: 13,
|
|
|
|
marginLeft: 4,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
|
|
|
updateAlert: {
|
|
|
|
...sharedStyles.textSemibold
|
|
|
|
},
|
|
|
|
unreadNumberContainer: {
|
2019-04-24 18:36:29 +00:00
|
|
|
minWidth: 21,
|
|
|
|
height: 21,
|
2019-04-18 20:57:35 +00:00
|
|
|
paddingVertical: 3,
|
|
|
|
paddingHorizontal: 5,
|
2019-04-24 18:36:29 +00:00
|
|
|
borderRadius: 10.5,
|
2019-04-18 20:57:35 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
marginLeft: 10
|
|
|
|
},
|
2019-04-24 18:36:29 +00:00
|
|
|
unreadText: {
|
2019-04-18 20:57:35 +00:00
|
|
|
overflow: 'hidden',
|
|
|
|
fontSize: 13,
|
2019-04-24 18:36:29 +00:00
|
|
|
...sharedStyles.textMedium,
|
2019-04-18 20:57:35 +00:00
|
|
|
letterSpacing: 0.56,
|
|
|
|
textAlign: 'center'
|
|
|
|
},
|
|
|
|
status: {
|
|
|
|
marginRight: 7,
|
|
|
|
marginTop: 3
|
|
|
|
},
|
|
|
|
markdownText: {
|
|
|
|
flex: 1,
|
|
|
|
fontSize: 14,
|
|
|
|
lineHeight: 17,
|
2019-12-11 23:01:12 +00:00
|
|
|
...sharedStyles.textRegular
|
2019-04-18 20:57:35 +00:00
|
|
|
},
|
|
|
|
avatar: {
|
|
|
|
marginRight: 10
|
2019-07-15 17:24:48 +00:00
|
|
|
},
|
|
|
|
upperContainer: {
|
|
|
|
overflow: 'hidden'
|
|
|
|
},
|
|
|
|
actionsContainer: {
|
|
|
|
position: 'absolute',
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
height: ROW_HEIGHT
|
|
|
|
},
|
|
|
|
actionText: {
|
|
|
|
fontSize: 15,
|
|
|
|
justifyContent: 'center',
|
|
|
|
marginTop: 4,
|
|
|
|
...sharedStyles.textSemibold
|
|
|
|
},
|
|
|
|
actionLeftButtonContainer: {
|
|
|
|
position: 'absolute',
|
|
|
|
height: ROW_HEIGHT,
|
|
|
|
justifyContent: 'center',
|
|
|
|
top: 0
|
|
|
|
},
|
|
|
|
actionRightButtonContainer: {
|
|
|
|
position: 'absolute',
|
|
|
|
height: ROW_HEIGHT,
|
|
|
|
justifyContent: 'center',
|
2019-12-11 23:01:12 +00:00
|
|
|
top: 0
|
2019-07-15 17:24:48 +00:00
|
|
|
},
|
|
|
|
actionButton: {
|
|
|
|
width: ACTION_WIDTH,
|
|
|
|
height: '100%',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center'
|
2019-04-18 20:57:35 +00:00
|
|
|
}
|
|
|
|
});
|