2019-08-27 12:25:38 +00:00
|
|
|
import { StyleSheet } from 'react-native';
|
2018-01-09 17:12:55 +00:00
|
|
|
|
2019-03-29 19:36:07 +00:00
|
|
|
import sharedStyles from '../../views/Styles';
|
2019-11-25 20:01:17 +00:00
|
|
|
import { isTablet } from '../../utils/deviceInfo';
|
2019-04-08 12:35:28 +00:00
|
|
|
|
2018-01-09 17:12:55 +00:00
|
|
|
export default StyleSheet.create({
|
2018-11-16 11:06:29 +00:00
|
|
|
root: {
|
|
|
|
flexDirection: 'row'
|
|
|
|
},
|
2018-09-11 16:32:52 +00:00
|
|
|
container: {
|
2019-03-27 20:06:57 +00:00
|
|
|
paddingVertical: 4,
|
2019-02-27 14:47:15 +00:00
|
|
|
width: '100%',
|
2019-03-27 20:06:57 +00:00
|
|
|
paddingHorizontal: 14,
|
2019-05-20 20:43:50 +00:00
|
|
|
flexDirection: 'column'
|
2018-09-11 16:32:52 +00:00
|
|
|
},
|
2018-04-24 19:34:03 +00:00
|
|
|
messageContent: {
|
|
|
|
flex: 1,
|
2019-03-01 16:49:11 +00:00
|
|
|
marginLeft: 46
|
2018-09-11 16:32:52 +00:00
|
|
|
},
|
2018-11-16 11:06:29 +00:00
|
|
|
messageContentWithHeader: {
|
2019-03-01 16:49:11 +00:00
|
|
|
marginLeft: 10
|
2018-01-09 17:12:55 +00:00
|
|
|
},
|
2018-11-16 11:06:29 +00:00
|
|
|
messageContentWithError: {
|
|
|
|
marginLeft: 0
|
|
|
|
},
|
2019-12-04 16:39:53 +00:00
|
|
|
center: {
|
|
|
|
alignItems: 'center'
|
|
|
|
},
|
2018-02-08 14:08:50 +00:00
|
|
|
flex: {
|
2019-05-20 20:43:50 +00:00
|
|
|
flexDirection: 'row'
|
|
|
|
// flex: 1
|
2018-02-08 14:08:50 +00:00
|
|
|
},
|
2018-04-24 19:34:03 +00:00
|
|
|
temp: { opacity: 0.3 },
|
2019-03-27 20:06:57 +00:00
|
|
|
marginTop: {
|
2019-03-29 19:36:07 +00:00
|
|
|
marginTop: 6
|
2018-11-16 11:06:29 +00:00
|
|
|
},
|
2018-01-30 19:48:26 +00:00
|
|
|
reactionsContainer: {
|
|
|
|
flexDirection: 'row',
|
2018-04-24 19:34:03 +00:00
|
|
|
flexWrap: 'wrap',
|
2019-03-29 19:36:07 +00:00
|
|
|
marginTop: 6
|
2018-01-30 19:48:26 +00:00
|
|
|
},
|
2018-09-19 14:18:32 +00:00
|
|
|
reactionButton: {
|
2019-03-29 19:36:07 +00:00
|
|
|
marginRight: 6,
|
|
|
|
marginBottom: 6,
|
2019-03-01 16:49:11 +00:00
|
|
|
borderRadius: 2
|
2018-09-19 14:18:32 +00:00
|
|
|
},
|
2018-01-30 19:48:26 +00:00
|
|
|
reactionContainer: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'center',
|
2019-03-29 19:36:07 +00:00
|
|
|
borderRadius: 2,
|
|
|
|
borderWidth: 1,
|
2018-09-11 16:32:52 +00:00
|
|
|
height: 28,
|
2019-03-29 19:36:07 +00:00
|
|
|
minWidth: 46.3
|
2018-09-19 14:18:32 +00:00
|
|
|
},
|
2018-01-30 19:48:26 +00:00
|
|
|
reactionCount: {
|
2018-07-18 20:34:59 +00:00
|
|
|
fontSize: 14,
|
|
|
|
marginLeft: 3,
|
2018-09-11 16:32:52 +00:00
|
|
|
marginRight: 8.5,
|
2019-03-29 19:36:07 +00:00
|
|
|
...sharedStyles.textSemibold
|
2018-01-30 19:48:26 +00:00
|
|
|
},
|
|
|
|
reactionEmoji: {
|
2018-09-11 16:32:52 +00:00
|
|
|
fontSize: 13,
|
|
|
|
marginLeft: 7
|
2018-01-30 19:48:26 +00:00
|
|
|
},
|
|
|
|
reactionCustomEmoji: {
|
2018-09-11 16:32:52 +00:00
|
|
|
width: 19,
|
|
|
|
height: 19,
|
|
|
|
marginLeft: 7
|
2018-02-08 14:08:50 +00:00
|
|
|
},
|
|
|
|
avatar: {
|
2019-03-27 20:06:57 +00:00
|
|
|
marginTop: 4
|
2018-04-24 19:34:03 +00:00
|
|
|
},
|
2019-05-03 13:33:38 +00:00
|
|
|
avatarSmall: {
|
|
|
|
marginLeft: 16
|
|
|
|
},
|
2018-11-16 11:06:29 +00:00
|
|
|
errorButton: {
|
2019-07-17 14:06:39 +00:00
|
|
|
paddingLeft: 10,
|
2018-11-16 11:06:29 +00:00
|
|
|
paddingVertical: 5
|
2018-05-24 20:17:45 +00:00
|
|
|
},
|
2019-04-08 12:35:28 +00:00
|
|
|
buttonContainer: {
|
|
|
|
marginTop: 6,
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center'
|
|
|
|
},
|
|
|
|
button: {
|
|
|
|
paddingHorizontal: 15,
|
2018-09-11 16:32:52 +00:00
|
|
|
height: 44,
|
|
|
|
flexDirection: 'row',
|
2018-05-24 20:17:45 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
2019-04-17 17:01:03 +00:00
|
|
|
borderRadius: 2
|
2018-09-11 16:32:52 +00:00
|
|
|
},
|
2019-04-08 12:35:28 +00:00
|
|
|
smallButton: {
|
|
|
|
height: 30
|
|
|
|
},
|
|
|
|
buttonIcon: {
|
|
|
|
marginRight: 6
|
2018-05-24 20:17:45 +00:00
|
|
|
},
|
2019-04-08 12:35:28 +00:00
|
|
|
buttonText: {
|
2018-09-11 16:32:52 +00:00
|
|
|
fontSize: 14,
|
2019-03-29 19:36:07 +00:00
|
|
|
...sharedStyles.textMedium
|
2018-05-29 17:09:20 +00:00
|
|
|
},
|
2018-08-01 19:35:06 +00:00
|
|
|
imageContainer: {
|
2019-05-20 20:43:50 +00:00
|
|
|
// flex: 1,
|
2019-03-01 16:49:11 +00:00
|
|
|
flexDirection: 'column',
|
|
|
|
borderRadius: 4
|
2018-08-01 19:35:06 +00:00
|
|
|
},
|
|
|
|
image: {
|
|
|
|
width: '100%',
|
2019-11-25 20:01:17 +00:00
|
|
|
// maxWidth: 400,
|
|
|
|
minHeight: isTablet ? 300 : 200,
|
2018-09-11 16:32:52 +00:00
|
|
|
borderRadius: 4,
|
2019-04-08 12:35:28 +00:00
|
|
|
borderWidth: 1
|
2018-08-01 19:35:06 +00:00
|
|
|
},
|
2019-05-20 20:43:50 +00:00
|
|
|
imagePressed: {
|
|
|
|
opacity: 0.5
|
|
|
|
},
|
2018-08-01 19:35:06 +00:00
|
|
|
inlineImage: {
|
|
|
|
width: 300,
|
|
|
|
height: 300,
|
|
|
|
resizeMode: 'contain'
|
2018-09-11 16:32:52 +00:00
|
|
|
},
|
2019-08-27 12:25:38 +00:00
|
|
|
text: {
|
|
|
|
fontSize: 16,
|
2019-03-29 19:36:07 +00:00
|
|
|
...sharedStyles.textRegular
|
2019-04-08 12:35:28 +00:00
|
|
|
},
|
2019-08-27 12:25:38 +00:00
|
|
|
textInfo: {
|
|
|
|
fontStyle: 'italic',
|
|
|
|
fontSize: 16,
|
2019-04-08 12:35:28 +00:00
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
2019-04-17 17:01:03 +00:00
|
|
|
startedDiscussion: {
|
|
|
|
fontStyle: 'italic',
|
|
|
|
fontSize: 16,
|
|
|
|
marginBottom: 6,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
2019-04-08 12:35:28 +00:00
|
|
|
time: {
|
|
|
|
fontSize: 12,
|
|
|
|
paddingLeft: 10,
|
|
|
|
lineHeight: 22,
|
|
|
|
...sharedStyles.textRegular,
|
|
|
|
fontWeight: '300'
|
2019-04-17 17:01:03 +00:00
|
|
|
},
|
|
|
|
repliedThread: {
|
2019-04-24 18:36:29 +00:00
|
|
|
flexDirection: 'row',
|
2019-05-20 20:43:50 +00:00
|
|
|
// flex: 1,
|
2019-05-03 13:33:38 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
marginTop: 6,
|
|
|
|
marginBottom: 12
|
2019-04-24 18:36:29 +00:00
|
|
|
},
|
|
|
|
repliedThreadIcon: {
|
2019-05-03 13:33:38 +00:00
|
|
|
marginRight: 10,
|
|
|
|
marginLeft: 16
|
2019-04-17 17:01:03 +00:00
|
|
|
},
|
|
|
|
repliedThreadName: {
|
2019-05-03 13:33:38 +00:00
|
|
|
fontSize: 16,
|
2019-04-24 18:36:29 +00:00
|
|
|
flex: 1,
|
2019-04-25 17:18:49 +00:00
|
|
|
...sharedStyles.textRegular
|
2019-06-10 18:36:31 +00:00
|
|
|
},
|
|
|
|
readReceipt: {
|
|
|
|
lineHeight: 20
|
2018-01-09 17:12:55 +00:00
|
|
|
}
|
|
|
|
});
|