Single-line TextInput sized as multiline on Fabric ShadowNode #46583
Labels
Component: TextInput
Related to the TextInput component.
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Resolution: PR Submitted
A pull request with a fix has been provided.
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
Having a non-multiline
TextInput
component on new arch will be sized by the layout engine/shadow node as if it were multiline unless one explicitly setsnumberOfLines={1}
.Steps to reproduce
TextInput
React Native Version
0.75.3
Affected Platforms
Runtime - Android
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/oblador/react-native-textinput-height-issue
Screenshots and Videos
The text was updated successfully, but these errors were encountered: