2019-01-29 19:52:56 +00:00
|
|
|
import { StyleSheet } from 'react-native';
|
|
|
|
|
|
|
|
import { isIOS } from '../../utils/deviceInfo';
|
2019-03-29 19:36:07 +00:00
|
|
|
import sharedStyles from '../../views/Styles';
|
|
|
|
import {
|
|
|
|
COLOR_BORDER, COLOR_SEPARATOR, COLOR_BACKGROUND_CONTAINER, COLOR_WHITE
|
|
|
|
} from '../../constants/colors';
|
2017-12-08 19:36:03 +00:00
|
|
|
|
2017-12-20 20:14:07 +00:00
|
|
|
const MENTION_HEIGHT = 50;
|
2017-12-08 19:36:03 +00:00
|
|
|
|
|
|
|
export default StyleSheet.create({
|
|
|
|
textBox: {
|
2019-03-29 19:36:07 +00:00
|
|
|
backgroundColor: COLOR_WHITE,
|
2017-12-08 19:36:03 +00:00
|
|
|
flex: 0,
|
|
|
|
alignItems: 'center',
|
2019-03-29 19:36:07 +00:00
|
|
|
borderTopWidth: StyleSheet.hairlineWidth,
|
|
|
|
borderTopColor: COLOR_SEPARATOR,
|
2017-12-20 20:14:07 +00:00
|
|
|
zIndex: 2
|
2017-12-08 19:36:03 +00:00
|
|
|
},
|
2018-09-11 16:32:52 +00:00
|
|
|
composer: {
|
2019-03-29 19:36:07 +00:00
|
|
|
backgroundColor: COLOR_WHITE,
|
2018-09-11 16:32:52 +00:00
|
|
|
flexDirection: 'column',
|
2019-03-29 19:36:07 +00:00
|
|
|
borderTopColor: COLOR_SEPARATOR,
|
|
|
|
borderTopWidth: StyleSheet.hairlineWidth
|
2018-09-11 16:32:52 +00:00
|
|
|
},
|
2017-12-08 19:36:03 +00:00
|
|
|
textArea: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center',
|
2018-04-10 13:03:54 +00:00
|
|
|
flexGrow: 0,
|
2019-03-29 19:36:07 +00:00
|
|
|
backgroundColor: COLOR_WHITE
|
2017-12-08 19:36:03 +00:00
|
|
|
},
|
|
|
|
textBoxInput: {
|
2018-01-25 14:04:20 +00:00
|
|
|
textAlignVertical: 'center',
|
2018-09-27 11:43:19 +00:00
|
|
|
maxHeight: 242,
|
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,
|
|
|
|
fontSize: 17,
|
|
|
|
letterSpacing: 0,
|
2019-03-29 19:36:07 +00:00
|
|
|
...sharedStyles.textColorNormal,
|
|
|
|
...sharedStyles.textRegular
|
2017-12-08 19:36:03 +00:00
|
|
|
},
|
|
|
|
editing: {
|
|
|
|
backgroundColor: '#fff5df'
|
|
|
|
},
|
2018-09-27 11:43:19 +00:00
|
|
|
actionButton: {
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
width: 60,
|
|
|
|
height: 56
|
2017-12-08 19:36:03 +00:00
|
|
|
},
|
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-03-29 19:36:07 +00:00
|
|
|
backgroundColor: COLOR_BACKGROUND_CONTAINER,
|
2018-05-18 17:55:08 +00:00
|
|
|
borderTopWidth: 1,
|
2019-03-29 19:36:07 +00:00
|
|
|
borderTopColor: COLOR_BORDER,
|
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,
|
2018-01-30 19:48:26 +00:00
|
|
|
textAlign: 'center'
|
|
|
|
},
|
2018-01-19 12:38:14 +00:00
|
|
|
fixedMentionAvatar: {
|
|
|
|
textAlign: 'center',
|
2019-03-29 19:36:07 +00:00
|
|
|
width: 46,
|
|
|
|
fontSize: 14,
|
|
|
|
...sharedStyles.textBold,
|
|
|
|
...sharedStyles.textColorNormal
|
|
|
|
},
|
|
|
|
mentionText: {
|
|
|
|
fontSize: 14,
|
|
|
|
...sharedStyles.textRegular,
|
|
|
|
...sharedStyles.textColorNormal
|
2018-02-08 14:08:50 +00:00
|
|
|
},
|
|
|
|
emojiKeyboardContainer: {
|
|
|
|
flex: 1,
|
2019-03-29 19:36:07 +00:00
|
|
|
borderTopColor: COLOR_BORDER,
|
2018-02-08 14:08:50 +00:00
|
|
|
borderTopWidth: 1
|
2018-04-10 13:03:54 +00:00
|
|
|
},
|
|
|
|
iphoneXArea: {
|
|
|
|
height: 50,
|
2019-03-29 19:36:07 +00:00
|
|
|
backgroundColor: COLOR_WHITE,
|
2018-04-10 13:03:54 +00:00
|
|
|
position: 'absolute',
|
|
|
|
bottom: 0,
|
|
|
|
left: 0,
|
|
|
|
right: 0
|
2017-12-08 19:36:03 +00:00
|
|
|
}
|
|
|
|
});
|