callstack / callstack/react-native-paper

Text input number of lines and multiline not working in iOS.

Đang mở
#4,792 5 bình luận 1 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
14.5k
Fork
2.2k
Merge trung bình
5 ngày 23 giờ
Pull request đã merge (30 ngày)
12

Mô tả

### Current behaviour

I set the number of lines to be 1 and multiline to false. But the text value was still displaying in 2 lines. It's overflowing.

### Expected behaviour

The text value should display in fixed one line. (like in Android)

### How to reproduce?

` setText(text)}
mode="outlined"
numberOfLines={1}
multiline={false}
/>`

### Preview

iOS:
Image

Android: working fine, showing 1 line.

### What have you tried so far?

Originally, I have a custom TextInput that I'm using where I saw the issue. To rule out the cause, I used the standard TextInput from react native paper and I figured out that they have the same issue.

### Your Environment

| software | version
| --------------------- | -------
| react-native | 0.79.4
| react-native-paper | 5.14.5
| expo sdk | 53.0.15

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.