callstack / callstack/react-native-paper
TextInput component's right prop should accept any React.ReactNode content
- 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

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
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