Open jahirfiquitiva opened 6 months ago
I have setup a custom icon in PaperProvider
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'; ... <PaperProvider settings={{ icon: props => <FontAwesomeIcon {...props} icon={props.name} /> }}> // ... </PaperProvider>
But CheckboxAndroid and CheckboxIOS only use MaterialCommunityIcon instead of the icon function from the PaperProvider
CheckboxAndroid
CheckboxIOS
MaterialCommunityIcon
PaperProvider
https://github.com/callstack/react-native-paper/blob/d6b6b667dec9d9d47a8e7ad3afbbd48289b31971/src/components/Checkbox/CheckboxAndroid.tsx#L135
CheckboxAndroid and CheckboxIOS should use Icon instead of MaterialCommunityIcon for the check icons.
Icon
https://snack.expo.dev/@jahirfiquitiva/greedy-yellow-turkish-delight
@lukewalczak
Current behaviour
I have setup a custom icon in PaperProvider
But
CheckboxAndroid
andCheckboxIOS
only useMaterialCommunityIcon
instead of the icon function from thePaperProvider
https://github.com/callstack/react-native-paper/blob/d6b6b667dec9d9d47a8e7ad3afbbd48289b31971/src/components/Checkbox/CheckboxAndroid.tsx#L135
Expected behaviour
CheckboxAndroid
andCheckboxIOS
should useIcon
instead ofMaterialCommunityIcon
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