mattermost-mobile/app/components/markdown/markdown_block_quote.js
Carlos Tadeu Panato Junior b7eeea3808 [RN-112] Update the formatting of markdown block quotes (#538)
* RN-112 - Update the formatting of markdown block quotes

* update style definitions

* update per review
2017-05-29 09:56:00 -04:00

42 lines
1.1 KiB
JavaScript

// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import React, {PureComponent} from 'react';
import {
StyleSheet,
View
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import CustomPropTypes from 'app/constants/custom_prop_types';
export default class MarkdownBlockQuote extends PureComponent {
static propTypes = {
blockStyle: CustomPropTypes.Style,
children: CustomPropTypes.Children.isRequired
};
render() {
return (
<View style={style.container}>
<View>
<Icon
name='quote-left'
style={this.props.blockStyle}
size={14}
/>
</View>
<View>
{this.props.children}
</View>
</View>
);
}
}
const style = StyleSheet.create({
container: {
flexDirection: 'row',
alignItems: 'flex-start'
}
});