ThakurBallary / react-native-radio-buttons-group

Simple, best and easy to use radio buttons for react native apps.
MIT License
263 stars 71 forks source link

borderColor and color Props are not working #76

Closed himanshu-0410 closed 5 months ago

himanshu-0410 commented 5 months ago

I've added the component in my React Native project, facing issues with the props "borderColor" and "color". It's giving me the following error: Type '{ radioButtons: { id: string; label: string; value: string; }[]; onPress: (id: string) => void; selectedId: string | undefined; borderColor: string; }' is not assignable to type 'IntrinsicAttributes & RadioGroupProps'. Property 'borderColor' does not exist on type 'IntrinsicAttributes & RadioGroupProps'.

Please check the attached image and let me know if I'm doing anything wrong.

image
rafael-vitor commented 5 months ago

@himanshu-0410 borderColor and color are props for RadioButton and not RadioGroup. Add those to your radioButtonsFormatted objects and they'll be passed to the RadioButton Components underneath