2018-01-30 19:48:26 +00:00
|
|
|
import { StyleSheet, Platform } from 'react-native';
|
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: {
|
|
|
|
backgroundColor: '#fff',
|
|
|
|
flex: 0,
|
|
|
|
alignItems: 'center',
|
|
|
|
borderTopWidth: 1,
|
|
|
|
borderTopColor: '#D8D8D8',
|
2017-12-20 20:14:07 +00:00
|
|
|
zIndex: 2
|
2017-12-08 19:36:03 +00:00
|
|
|
},
|
|
|
|
textArea: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center',
|
2018-04-10 13:03:54 +00:00
|
|
|
flexGrow: 0,
|
|
|
|
backgroundColor: '#fff'
|
2017-12-08 19:36:03 +00:00
|
|
|
},
|
|
|
|
textBoxInput: {
|
2018-01-25 14:04:20 +00:00
|
|
|
textAlignVertical: 'center',
|
2017-12-08 19:36:03 +00:00
|
|
|
maxHeight: 120,
|
|
|
|
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,
|
|
|
|
paddingRight: 0
|
2017-12-08 19:36:03 +00:00
|
|
|
},
|
|
|
|
editing: {
|
|
|
|
backgroundColor: '#fff5df'
|
|
|
|
},
|
|
|
|
actionButtons: {
|
|
|
|
color: '#2F343D',
|
|
|
|
fontSize: 20,
|
|
|
|
textAlign: 'center',
|
2018-01-25 14:04:20 +00:00
|
|
|
padding: 15,
|
2018-04-24 19:34:03 +00:00
|
|
|
paddingHorizontal: 12,
|
2017-12-08 19:36:03 +00:00
|
|
|
flex: 0
|
|
|
|
},
|
2017-12-20 20:14:07 +00:00
|
|
|
mentionList: {
|
|
|
|
maxHeight: MENTION_HEIGHT * 4,
|
|
|
|
borderTopColor: '#ECECEC',
|
|
|
|
borderTopWidth: 1,
|
|
|
|
paddingHorizontal: 5,
|
|
|
|
backgroundColor: '#fff'
|
|
|
|
},
|
|
|
|
mentionItem: {
|
|
|
|
height: MENTION_HEIGHT,
|
|
|
|
backgroundColor: '#F7F8FA',
|
|
|
|
borderBottomWidth: 1,
|
|
|
|
borderBottomColor: '#ECECEC',
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center'
|
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,
|
|
|
|
fontSize: Platform.OS === 'ios' ? 30 : 25,
|
|
|
|
textAlign: 'center'
|
|
|
|
},
|
2018-01-19 12:38:14 +00:00
|
|
|
fixedMentionAvatar: {
|
|
|
|
fontWeight: 'bold',
|
|
|
|
textAlign: 'center',
|
|
|
|
width: 46
|
2018-02-08 14:08:50 +00:00
|
|
|
},
|
|
|
|
emojiKeyboardContainer: {
|
|
|
|
flex: 1,
|
|
|
|
borderTopColor: '#ECECEC',
|
|
|
|
borderTopWidth: 1
|
2018-04-10 13:03:54 +00:00
|
|
|
},
|
|
|
|
iphoneXArea: {
|
|
|
|
height: 50,
|
|
|
|
backgroundColor: '#fff',
|
|
|
|
position: 'absolute',
|
|
|
|
bottom: 0,
|
|
|
|
left: 0,
|
|
|
|
right: 0
|
2017-12-08 19:36:03 +00:00
|
|
|
}
|
|
|
|
});
|