Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰] The messageTextNumberOfLines works only for single paragraph and not for multiple paragraphs #2188

Closed
8 tasks
khushal87 opened this issue Jul 18, 2023 · 1 comment
Labels
Bug Something isn't working in the SDK User Experience

Comments

@khushal87
Copy link
Member

Issue

The messageTextNumberOfLines currently only works for a single paragraph and doesn't apply to messages text with multiple paragraphs.

Describe your issue here

Ref - https://getstream.zendesk.com/agent/tickets/38841


Steps to reproduce

Steps to reproduce the behavior:

  1. Go to ChannelList Screen
  2. Paste a long message with multiple paragraphs.
  3. Long press on the message.
  4. With the messageTextNumberOfLines value added in the prop, the text truncation only applies to a single paragraph.

Expected behavior

It should truncate the entire text.


Project Related Information

Customization

Click To Expand

Do not forget to add the value for the prop `messageTextNumberOfLines`.


Offline support

  • I have enabled offline support.
  • The feature I'm having does not occur when offline support is disabled. (stripe out if not applicable)

Environment

Click To Expand

package.json:

# N/A

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • stream-chat-react-native version you're using that has this issue:
    • e.g. 5.4.3
  • Device/Emulator info:
    • I am using a physical device
    • OS version: e.g. Android 10
    • Device/Emulator: e.g. iPhone 11


Additional context


Screenshots

Click To Expand


@vishalnarkhede
Copy link
Contributor

The fix is available in 5.18.1-beta.2 !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working in the SDK User Experience
Projects
None yet
Development

No branches or pull requests

2 participants