callstack / callstack/react-native-paper

TextInput component's right prop should accept any React.ReactNode content

Đang mở
#2,866 10 bình luận 1 reaction 0 người được giao Xem trên GitHub
enhancement Hacktoberfest Stale TextInput
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ả

**Is your feature request related to a problem? Please describe.**
I want to be able to show an `ActivityIndicator` as the `right` prop for the `TextInput` to show loading states.

**Describe the solution you'd like**
The `TextInput` component's `right` prop should accept any `React.ReactNode` content and render it on the right side of the input.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
This is what I would expect the final result to look like
Screen Shot 2021-08-20 at 8 44 39 AM

react-native: 0.65.1
react-native-paper: 4.9.2
react-native-vector-icons: 8.1.0

repro: [snack example](https://snack.expo.dev/q_-DRFxH_)

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

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

Hướng nghiên cứu

Bắt đầu từ prop `right` của component TextInput và sử dụng ví dụ Snack được liên kết để tái hiện trường hợp trạng thái loading được yêu cầu. Xác nhận rằng có thể truyền một ActivityIndicator làm `right` và nó xuất hiện ở phía bên phải của input; payload không nêu tên file nguồn hoặc test nào cần chạy.

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, react-native, typescript
Lĩnh vực
frontend, mobile
Loại issue
Tính năng
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
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
38/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.