2020-02-17 12:14:56 +00:00
|
|
|
import { StyleSheet } from 'react-native';
|
2019-01-29 19:52:56 +00:00
|
|
|
|
|
|
|
import { isIOS } from '../../utils/deviceInfo';
|
2019-03-29 19:36:07 +00:00
|
|
|
import sharedStyles from '../../views/Styles';
|
2017-12-08 19:36:03 +00:00
|
|
|
|
2017-12-20 20:14:07 +00:00
|
|
|
const MENTION_HEIGHT = 50;
|
2019-06-10 18:36:56 +00:00
|
|
|
const SCROLLVIEW_MENTION_HEIGHT = 4 * MENTION_HEIGHT;
|
2017-12-08 19:36:03 +00:00
|
|
|
|
|
|
|
export default StyleSheet.create({
|
2018-09-11 16:32:52 +00:00
|
|
|
composer: {
|
|
|
|
flexDirection: 'column',
|
2020-07-13 16:43:08 +00:00
|
|
|
borderTopWidth: 1
|
2018-09-11 16:32:52 +00:00
|
|
|
},
|
2017-12-08 19:36:03 +00:00
|
|
|
textArea: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center',
|
2019-12-04 16:39:53 +00:00
|
|
|
flexGrow: 0
|
2017-12-08 19:36:03 +00:00
|
|
|
},
|
|
|
|
textBoxInput: {
|
2018-01-25 14:04:20 +00:00
|
|
|
textAlignVertical: 'center',
|
2020-10-30 17:35:07 +00:00
|
|
|
maxHeight: 240,
|
2017-12-08 19:36:03 +00:00
|
|
|
flexGrow: 1,
|
|
|
|
width: 1,
|
2018-04-24 19:34:03 +00:00
|
|
|
// paddingVertical: 12, needs to be paddingTop/paddingBottom because of iOS/Android's TextInput differences on rendering
|
|
|
|
paddingTop: 12,
|
|
|
|
paddingBottom: 12,
|
2018-02-08 14:08:50 +00:00
|
|
|
paddingLeft: 0,
|
2018-09-27 11:43:19 +00:00
|
|
|
paddingRight: 0,
|
2020-10-30 17:35:07 +00:00
|
|
|
fontSize: 16,
|
2018-09-27 11:43:19 +00:00
|
|
|
letterSpacing: 0,
|
2019-03-29 19:36:07 +00:00
|
|
|
...sharedStyles.textRegular
|
2017-12-08 19:36:03 +00:00
|
|
|
},
|
2018-09-27 11:43:19 +00:00
|
|
|
actionButton: {
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
width: 60,
|
2020-10-30 17:35:07 +00:00
|
|
|
height: 48
|
2017-12-08 19:36:03 +00:00
|
|
|
},
|
2021-09-22 17:29:26 +00:00
|
|
|
wrapMentionHeaderList: {
|
|
|
|
height: MENTION_HEIGHT,
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
wrapMentionHeaderListRow: {
|
|
|
|
height: MENTION_HEIGHT,
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center',
|
|
|
|
paddingHorizontal: 12
|
|
|
|
},
|
|
|
|
loadingPaddingHeader: {
|
|
|
|
paddingRight: 12
|
|
|
|
},
|
|
|
|
mentionHeaderList: {
|
|
|
|
fontSize: 14,
|
|
|
|
...sharedStyles.textMedium
|
|
|
|
},
|
|
|
|
mentionHeaderListNoMatchFound: {
|
|
|
|
fontSize: 14,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
|
|
|
mentionNoMatchHeader: {
|
|
|
|
justifyContent: 'space-between'
|
|
|
|
},
|
2017-12-20 20:14:07 +00:00
|
|
|
mentionList: {
|
2018-05-18 17:55:08 +00:00
|
|
|
maxHeight: MENTION_HEIGHT * 4
|
2017-12-20 20:14:07 +00:00
|
|
|
},
|
|
|
|
mentionItem: {
|
|
|
|
height: MENTION_HEIGHT,
|
2019-12-04 16:39:53 +00:00
|
|
|
borderTopWidth: StyleSheet.hairlineWidth,
|
2017-12-20 20:14:07 +00:00
|
|
|
flexDirection: 'row',
|
2018-05-18 17:55:08 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
paddingHorizontal: 5
|
2018-01-16 18:48:05 +00:00
|
|
|
},
|
2018-01-30 19:48:26 +00:00
|
|
|
mentionItemCustomEmoji: {
|
|
|
|
margin: 8,
|
|
|
|
width: 30,
|
|
|
|
height: 30
|
|
|
|
},
|
|
|
|
mentionItemEmoji: {
|
|
|
|
width: 46,
|
|
|
|
height: 36,
|
2019-01-29 19:52:56 +00:00
|
|
|
fontSize: isIOS ? 30 : 25,
|
2020-11-30 21:47:05 +00:00
|
|
|
...sharedStyles.textAlignCenter
|
2018-01-30 19:48:26 +00:00
|
|
|
},
|
2018-01-19 12:38:14 +00:00
|
|
|
fixedMentionAvatar: {
|
2019-03-29 19:36:07 +00:00
|
|
|
width: 46,
|
|
|
|
fontSize: 14,
|
2020-11-30 21:47:05 +00:00
|
|
|
...sharedStyles.textBold,
|
|
|
|
...sharedStyles.textAlignCenter
|
2019-03-29 19:36:07 +00:00
|
|
|
},
|
|
|
|
mentionText: {
|
|
|
|
fontSize: 14,
|
2019-12-04 16:39:53 +00:00
|
|
|
...sharedStyles.textRegular
|
2018-02-08 14:08:50 +00:00
|
|
|
},
|
2021-09-22 17:29:26 +00:00
|
|
|
cannedMentionText: {
|
|
|
|
flex: 1,
|
|
|
|
fontSize: 14,
|
|
|
|
paddingRight: 12,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
|
|
|
cannedItem: {
|
|
|
|
fontSize: 14,
|
|
|
|
...sharedStyles.textBold,
|
|
|
|
paddingLeft: 12,
|
|
|
|
paddingRight: 8
|
|
|
|
},
|
2020-02-17 12:14:56 +00:00
|
|
|
emojiKeyboardContainer: {
|
|
|
|
flex: 1,
|
|
|
|
borderTopWidth: StyleSheet.hairlineWidth
|
|
|
|
},
|
2019-06-10 18:36:56 +00:00
|
|
|
slash: {
|
|
|
|
height: 30,
|
|
|
|
width: 30,
|
|
|
|
padding: 5,
|
|
|
|
paddingHorizontal: 12,
|
|
|
|
marginHorizontal: 10,
|
|
|
|
borderRadius: 2
|
|
|
|
},
|
|
|
|
commandPreviewImage: {
|
|
|
|
justifyContent: 'center',
|
|
|
|
margin: 3,
|
|
|
|
width: 120,
|
|
|
|
height: 80,
|
|
|
|
borderRadius: 4
|
|
|
|
},
|
|
|
|
commandPreview: {
|
|
|
|
height: 100,
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center'
|
|
|
|
},
|
|
|
|
avatar: {
|
|
|
|
margin: 8
|
|
|
|
},
|
|
|
|
scrollViewMention: {
|
|
|
|
maxHeight: SCROLLVIEW_MENTION_HEIGHT
|
2020-06-26 20:22:56 +00:00
|
|
|
},
|
2020-07-06 19:23:46 +00:00
|
|
|
recordingContent: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
flex: 1,
|
|
|
|
justifyContent: 'space-between'
|
|
|
|
},
|
|
|
|
recordingCancelText: {
|
2020-10-30 17:35:07 +00:00
|
|
|
fontSize: 16,
|
2020-07-06 19:23:46 +00:00
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
2020-06-26 20:22:56 +00:00
|
|
|
buttonsWhitespace: {
|
|
|
|
width: 15
|
2020-10-30 17:35:07 +00:00
|
|
|
},
|
|
|
|
sendToChannelButton: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center',
|
|
|
|
paddingVertical: 8,
|
|
|
|
paddingHorizontal: 18
|
|
|
|
},
|
|
|
|
sendToChannelText: {
|
|
|
|
fontSize: 12,
|
|
|
|
marginLeft: 4,
|
|
|
|
...sharedStyles.textRegular
|
2017-12-08 19:36:03 +00:00
|
|
|
}
|
|
|
|
});
|