Open gedu opened 1 month ago
:warning: | Add or Reformat Version Info |
---|---|
:information_source: | We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.70.2 |
@gedu I checked this, it is reproducible in new architecture working correctly in old one. @cortinico I am looking into this.
@cortinico While debugging this I found this TODO: https://github.com/facebook/react-native/blob/245e5d9d951b36d578db29f218da77a274fff8d9/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java#L1342 Here we are setting padding to zero. Where do we need to move this code block?
I think it's the same issue as this PR is fixing - https://github.com/facebook/react-native/pull/42331
@j-piasecki I think your forked repo is not in sync with main one.
This file:
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java
no longer exists currently.
Also the code in this file changed:
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java
Can you just check once. I am trying to test this fix.
Description
When the TextInput component is controlled and the multiline prop is set to true, the text gets cut off after writing some text and adding a new line. However, when a new character is added, the text displays correctly.
Steps to reproduce
React Native Version
0.74.3
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/gedu/android-composer-reproducer
Screenshots and Videos
https://github.com/user-attachments/assets/67a44e6e-c8bc-470a-b29b-48b7846b1d36