feat(notifications): set numberOfLines for content text description and title

pull/14968/head
Calin-Teodor 10 months ago committed by Calinteodor
parent 68106feb57
commit a2aca30d57
  1. 6
      react/features/notifications/components/native/Notification.tsx
  2. 1
      react/features/notifications/components/native/styles.ts

@ -153,6 +153,7 @@ const Notification = ({
return (
<>
<Text
numberOfLines = { 1 }
style = { styles.contentTextTitle as TextStyle }>
{ titleText }
</Text>
@ -160,6 +161,7 @@ const Notification = ({
descriptionArray.map((line, index) => (
<Text
key = { index }
numberOfLines = { 3 }
style = { styles.contentText }>
{ replaceNonUnicodeEmojis(line) }
</Text>
@ -170,7 +172,9 @@ const Notification = ({
}
return (
<Text style = { styles.contentTextTitle as TextStyle }>
<Text
numberOfLines = { 1 }
style = { styles.contentTextTitle as TextStyle }>
{ titleText }
</Text>
);

@ -13,7 +13,6 @@ const notification = {
borderLeftWidth: BaseTheme.spacing[1],
display: 'flex',
flexDirection: 'row',
height: 'auto',
marginVertical: BaseTheme.spacing[1],
maxWidth: 416,
width: '100%'

Loading…
Cancel
Save