-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Native 0.76+ TextInput line break is broken on Android #50438
Comments
Warning Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:
|
Reproducer https://snack.expo.dev/JFmCTXiVgWwi6cSF2q1SK |
Hi @Sky , Could you please try using the multiline property like this? <TextInput multiline style={{ borderColor: 'black', borderWidth: 1, color: 'black' }} />. This should allow the text to break into multiple lines. You can refer to the React Native documentation for more details. I believe this behavior aligns with the expected functionality of React Native. I was able to reproduce this behavior on both Android (with the new and old architecture) RN version 0.77.2 and have also verified that previous RN versions exhibit the same behavior. |
When New Arch is disabled text is breaking without |
Description
Looks like TextInput line break does not work correctly on Android. Input field is growing in size but text is in one line. It is working fine with New Architecture disabled.
Steps to reproduce
or
npx @react-native-community/cli@latest init AwesomeProject --version 0.77.2<TextInput style={{ borderColor: 'black', borderWidth: 1, color: 'black' }} />
React Native Version
0.77.2
Affected Platforms
Runtime - Android
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/JFmCTXiVgWwi6cSF2q1SK
Screenshots and Videos
The text was updated successfully, but these errors were encountered: