callstack / callstack/react-native-paper
CheckboxAndroid and CheckboxIOS use MaterialCommunityIcon instead of custom icon function from PaperProvider
- 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 have setup a custom icon in PaperProvider
```
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome';
...
}}>
// ...
```
But `CheckboxAndroid` and `CheckboxIOS` only use `MaterialCommunityIcon` instead of the icon function from the `PaperProvider`
https://github.com/callstack/react-native-paper/blob/d6b6b667dec9d9d47a8e7ad3afbbd48289b31971/src/components/Checkbox/CheckboxAndroid.tsx#L135
### Expected behaviour
`CheckboxAndroid` and `CheckboxIOS` should use [`Icon`](https://github.com/callstack/react-native-paper/blob/main/src/components/Icon.tsx) instead of `MaterialCommunityIcon` for the check icons.
### How to reproduce?
https://snack.expo.dev/@jahirfiquitiva/greedy-yellow-turkish-delight
### Preview
### What have you tried so far?
### Your Environment
| software | version
| --------------------- | -------
| ios | 17.0.1
| android | x
| react-native | 0.72.6
| react-native-paper | 5.11.6
| node | v18.18.2
| npm or yarn | 4.0.1
| expo sdk | x.x.x
Hướng dẫn đóng góp
Hướng nghiên cứu
Start with the CheckboxAndroid.tsx location linked in the issue, then inspect CheckboxIOS and src/components/Icon.tsx. Verify how the custom PaperProvider icon function is accessed and confirm that both checkbox components use it for their check icons. Done means the provided FontAwesome icon renders for checkboxes on Android and iOS.
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 50/100