diff --git a/android/app/src/main/res/drawable-hdpi/mention_header.png b/android/app/src/main/res/drawable-hdpi/mention_header.png new file mode 100644 index 00000000..01cc741a Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/mention_header.png differ diff --git a/android/app/src/main/res/drawable-mdpi/mention_header.png b/android/app/src/main/res/drawable-mdpi/mention_header.png new file mode 100644 index 00000000..f278d456 Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/mention_header.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/mention_header.png b/android/app/src/main/res/drawable-xhdpi/mention_header.png new file mode 100644 index 00000000..83f29f79 Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/mention_header.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/mention_header.png b/android/app/src/main/res/drawable-xxhdpi/mention_header.png new file mode 100644 index 00000000..f20b27ae Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/mention_header.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/mention_header.png b/android/app/src/main/res/drawable-xxxhdpi/mention_header.png new file mode 100644 index 00000000..930fe78f Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/mention_header.png differ diff --git a/app/containers/Button/index.js b/app/containers/Button/index.js index b632abc5..f7d610aa 100644 --- a/app/containers/Button/index.js +++ b/app/containers/Button/index.js @@ -25,8 +25,7 @@ const styles = StyleSheet.create({ }, text: { fontSize: 18, - textAlign: 'center', - fontWeight: '500' + textAlign: 'center' }, background_primary: { backgroundColor: colors.background_primary @@ -54,7 +53,8 @@ export default class Button extends React.PureComponent { onPress: PropTypes.func, disabled: PropTypes.bool, backgroundColor: PropTypes.string, - loading: PropTypes.bool + loading: PropTypes.bool, + style: PropTypes.any } static defaultProps = { @@ -67,7 +67,7 @@ export default class Button extends React.PureComponent { render() { const { - title, type, onPress, disabled, backgroundColor, loading, ...otherProps + title, type, onPress, disabled, backgroundColor, loading, style, ...otherProps } = this.props; return ( diff --git a/app/containers/MessageBox/UploadModal.js b/app/containers/MessageBox/UploadModal.js index c33eb6b0..aa4ec42e 100644 --- a/app/containers/MessageBox/UploadModal.js +++ b/app/containers/MessageBox/UploadModal.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import { - View, Text, StyleSheet, Image, ScrollView, Platform + View, Text, StyleSheet, Image, ScrollView, Platform, TouchableHighlight } from 'react-native'; import PropTypes from 'prop-types'; import Modal from 'react-native-modal'; @@ -10,20 +10,24 @@ import equal from 'deep-equal'; import TextInput from '../TextInput'; import Button from '../Button'; import I18n from '../../i18n'; +import sharedStyles from '../../views/Styles'; const cancelButtonColor = '#f7f8fa'; const styles = StyleSheet.create({ + modal: { + alignItems: 'center' + }, titleContainer: { flexDirection: 'row', paddingHorizontal: 16, paddingTop: 16 }, title: { - fontWeight: 'bold' + ...sharedStyles.textBold }, container: { - height: Platform.OS === 'ios' ? 404 : 430, + height: 430, backgroundColor: '#ffffff', flexDirection: 'column' }, @@ -43,9 +47,20 @@ const styles = StyleSheet.create({ padding: 16, backgroundColor: '#f7f8fa' }, - buttonMargin: { - margin: 0 + button: { + marginBottom: 0 + }, + androidButton: { + paddingHorizontal: 15, + justifyContent: 'center', + height: 48, + borderRadius: 2 + }, + androidButtonText: { + fontSize: 18, + textAlign: 'center' } + }); @responsive @@ -75,21 +90,65 @@ export default class UploadModal extends Component { return null; } - _submit = () => { + submit = () => { const { file, submit } = this.props; const { name, description } = this.state; submit({ ...file, name, description }); } + renderButtons = () => { + const { close } = this.props; + if (Platform.OS === 'ios') { + return ( + +