stream-chat-react-native
stream-chat-react-native copied to clipboard
[🐛] Truncated text in Android Markdown messages
Issue
Message text sometimes gets truncated on Android when the Accessibility/Display size and text/Bold text setting is enabled
this screencap shows the issue with the bottom two messages:
while this screencap has markdown font-weight constrained to
bold in the theme, and renders correctly:
We have currently constrained the font-weight to 500 in the theme to work around the issue, which works - but the theme font-wegith completely overrides the accessibility bold setting, so users get no choice anymore, everyone gets weight 500
Steps to reproduce
Steps to reproduce the behavior:
- on an Android chat app, enable the
Accessibility/Display size and text/Bold text - send a variety of messages - some will be truncated, presumably depending on some inscrutable property of the message text
Expected behavior
All the text in a message should be displayed, and overflows should wrap to the next line - text should never be truncated
Project Related Information
Customization
Click To Expand
# N/A
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
- [X] Android
- [ ] iOS but have not tested behavior on Android
- [ ] Android but have not tested behavior on iOS
- [ ] Both
stream-chat-react-nativeversion you're using that has this issue:5.36.2- I tried6.7.4and that had the same issue
- Device/Emulator info:
- [X] I am using a physical device
- [X] I am also using an emulator
- OS version:
Android 15 - Device/Emulator:
Pixel 8
Additional context
Screenshots
Click To Expand