verdnatura-chat/app/containers/MessageBox/styles.js

105 lines
2.2 KiB
JavaScript
Raw Normal View History

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';
const MENTION_HEIGHT = 50;
export default StyleSheet.create({
textBox: {
2019-03-29 19:36:07 +00:00
backgroundColor: COLOR_WHITE,
flex: 0,
alignItems: 'center',
2019-03-29 19:36:07 +00:00
borderTopWidth: StyleSheet.hairlineWidth,
borderTopColor: COLOR_SEPARATOR,
zIndex: 2
},
composer: {
2019-03-29 19:36:07 +00:00
backgroundColor: COLOR_WHITE,
flexDirection: 'column',
2019-03-29 19:36:07 +00:00
borderTopColor: COLOR_SEPARATOR,
borderTopWidth: StyleSheet.hairlineWidth
},
textArea: {
flexDirection: 'row',
alignItems: 'center',
flexGrow: 0,
2019-03-29 19:36:07 +00:00
backgroundColor: COLOR_WHITE
},
textBoxInput: {
2018-01-25 14:04:20 +00:00
textAlignVertical: 'center',
maxHeight: 242,
flexGrow: 1,
width: 1,
Beta (#265) * Fabric iOS * Fabric configured on iOS and Android * - react-native-fabric configured - login tracked * README updated * Run scripts from README updated * README scripts * get rooms and messages by rest * user status * more improves * more improves * send pong on timeout * fix some methods * more tests * rest messages * Room actions (#266) * Toggle notifications * Search messages * Invite users * Mute/Unmute users in room * rocket.cat messages * Room topic layout fixed * Starred messages loading onEndReached * Room actions onEndReached * Unnecessary login request * Login loading * Login services fixed * User presence layout * ïmproves on room actions view * Removed unnecessary data from SelectedUsersView * load few messages on open room, search message improve * fix loading messages forever * Removed state from search * Custom message time format * secureTextEntry layout * Reduce android app size * Roles subscription fix * Public routes navigation * fix reconnect * - New login/register, login, register * proguard * Login flux * App init/restore * Android layout fixes * Multiple meteor connection requests fixed * Nested attachments * Nested attachments * fix check status * New login layout (#269) * Public routes navigation * New login/register, login, register * Multiple meteor connection requests fixed * Nested attachments * Button component * TextInput android layout fixed * Register fixed * Thinner close modal button * Requests /me after login only one time * Static images moved * fix reconnect * fix ddp * fix custom emoji * New message layout (#273) * Grouping messages * Message layout * Users typing animation * Image attachment layout
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,
paddingLeft: 0,
paddingRight: 0,
fontSize: 17,
letterSpacing: 0,
2019-03-29 19:36:07 +00:00
...sharedStyles.textColorNormal,
...sharedStyles.textRegular
},
editing: {
backgroundColor: '#fff5df'
},
actionButton: {
alignItems: 'center',
justifyContent: 'center',
width: 60,
height: 56
},
mentionList: {
maxHeight: MENTION_HEIGHT * 4
},
mentionItem: {
height: MENTION_HEIGHT,
2019-03-29 19:36:07 +00:00
backgroundColor: COLOR_BACKGROUND_CONTAINER,
borderTopWidth: 1,
2019-03-29 19:36:07 +00:00
borderTopColor: COLOR_BORDER,
flexDirection: 'row',
alignItems: 'center',
paddingHorizontal: 5
},
mentionItemCustomEmoji: {
margin: 8,
width: 30,
height: 30
},
mentionItemEmoji: {
width: 46,
height: 36,
2019-01-29 19:52:56 +00:00
fontSize: isIOS ? 30 : 25,
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
},
emojiKeyboardContainer: {
flex: 1,
2019-03-29 19:36:07 +00:00
borderTopColor: COLOR_BORDER,
borderTopWidth: 1
},
iphoneXArea: {
height: 50,
2019-03-29 19:36:07 +00:00
backgroundColor: COLOR_WHITE,
position: 'absolute',
bottom: 0,
left: 0,
right: 0
}
});