callstack / callstack/react-native-paper

TextInput doesn't work when wrapped with DataTable.Cell

Đang mở
#4,236 0 bình luận 0 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
When wrapping react-native-paper TextInput with DataTable.Cell, the TextInput field cannot be clicked. This happens when using expo 46 or 47 for example. However, when switching to expo 49 the issue is gone.

### Expected behaviour
TextInput should work no matter what the expo version is.

### How to reproduce?
Check this snack and use it with expo 47 and then switch to 49:
https://snack.expo.dev/NJBBqWh5g

### Preview
Use the snack and switch from expo v47 to 49 and see that input starts working again

### What have you tried so far?
I have tried to use pointerEvents prop etc without success.

### Your Environment

| software | version
| --------------------- | -------
| ios | x
| android | x
| react-native | x.x.x
| react-native-paper | 5.11.4
| node | x.x.x
| npm or yarn | x.x.x
| expo sdk | 47.0.0 / 49.0.0

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

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

Hướng nghiên cứu

Start with the linked Expo Snack and reproduce the interaction between react-native-paper TextInput and DataTable.Cell under Expo SDK 47, then compare it with SDK 49 where the issue is absent. Trace the DataTable.Cell and TextInput entry points involved in touch handling; done means the field can be clicked in the reported Expo versions.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
react-native, typescript
Lĩnh vực
mobile
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

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.