[FIX] Reply title should break text (#616)

This commit is contained in:
Diego Mello 2019-02-08 14:34:50 -02:00 committed by GitHub
parent f065bd05f2
commit 7bf1f3c0be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 63 additions and 0 deletions

View File

@ -1156,6 +1156,47 @@ exports[`Storyshots Message list 1`] = `
> >
View View
</View> </View>
<View
style={
Object {
"flexDirection": "row",
}
}
>
View
</View>
<Text
style={
Array [
Object {
"fontSize": 20,
"fontWeight": "300",
"marginLeft": 10,
"marginTop": 30,
},
Object {
"marginBottom": 30,
"marginTop": 0,
"transform": Array [
Object {
"scaleY": -1,
},
],
},
]
}
>
Message with reply
</Text>
<View
style={
Object {
"flexDirection": "row",
}
}
>
View
</View>
<Text <Text
style={ style={
Array [ Array [

View File

@ -23,10 +23,12 @@ const styles = StyleSheet.create({
padding: 15 padding: 15
}, },
authorContainer: { authorContainer: {
flex: 1,
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center' alignItems: 'center'
}, },
author: { author: {
flex: 1,
color: '#1d74f5', color: '#1d74f5',
fontSize: 18, fontSize: 18,
fontWeight: '500', fontWeight: '500',

View File

@ -231,6 +231,26 @@ export default (
/> />
<Separator title='With audio' /> <Separator title='With audio' />
<Message
msg="I'm fine!"
attachments={[{
author_name: 'This is a long title and i\'ll break',
ts: date,
timeFormat: 'LT',
text: 'How are you?'
}]}
/>
<Message
msg="I'm fine!"
attachments={[{
author_name: 'rocket.cat',
ts: date,
timeFormat: 'LT',
text: 'How are you?'
}]}
/>
<Separator title='Message with reply' />
<Message <Message
urls={[{ urls={[{
url: 'https://rocket.chat', url: 'https://rocket.chat',