ecency / ecency-mobile

Ecency Mobile - reimagined social blogging, contribute and get rewarded (for Android and iOS)
https://ecency.com
MIT License
232 stars 69 forks source link

TextInput value disappears on Android 8.0 #1940

Open noumantahir opened 3 years ago

noumantahir commented 3 years ago

Describe the bug Users trying to create new post using app on Android 8.0 Oreo faces this weird issue that after adding around 80 words to editor the text disappears while post being still editable and updates can be viewed using editor.

Original Report: https://ecency.com/jobonlineclub/@yayogerardo/re-ecency-2021427t114514726z

To Reproduce Steps to reproduce the behavior:

  1. Go to ecency editor on Android 8.0
  2. Starting creating a body with lots of lines and spaces
  3. after 80 words or 35 lines or so, the text disappears
  4. Select preview and text should be visible there

Expected behavior It should never disappear as on other android versions and devices

Screenshots or Video Screenshot 2021-04-30 at 4 30 23 AM

Smartphone (please complete the following information):

Additional context Bases on initial emulator tests, it turned out that issue was being caused by TextInput wrapped inside a ScrollView. Since Android 8.0 is no longer officially supported by Google, it is possible that this is the primary source of bug.

However, for now, the bug has been patched with a hacky fix for Android 8.0 by using fixed view around editor content with scrollable TextInput itself along some basic header fine tuning to make more space for body text while being edited.

Patched Screenshot Screenshot_2021-04-30_at_12 40 02_AM

tarouboy commented 2 years ago

Anyone fixing this issue?