react-native-live-markdown icon indicating copy to clipboard operation
react-native-live-markdown copied to clipboard

Removing `multiline` on Android doesn't change component size

Open 289Adam289 opened this issue 1 year ago • 0 comments

Description

If original text value has \n character, removing multiline prop doesn't change component size, leaving blank space equal to the number of \n characters. Removing spaces reduce component size.

https://github.com/user-attachments/assets/d4c8cac8-784a-4b75-99ad-59242d1e7da0

Reproduction steps:

  1. Open example app
  2. set initial value to text that includes new line character
  3. comment multiline prop
  4. Observe that component size stays the same even though there is single line of text.

commit c352064a2f6c71d457277d958a0270c9d989db5a

289Adam289 avatar Nov 14 '24 17:11 289Adam289