You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hey, thanks for this package it looks great! I've added it to a react native web project and the checkbox seems to toggle state correctly but no check icon is shown, so it's just a colour changing box currently...I've tried passing in an iconComponent but when i do that the iconComponent is always rendered, even when the box isn't checked
The text was updated successfully, but these errors were encountered:
what i would recommend is just downloading a check icon png, even the one from this project, which is what i did and use it as the source. I created a thin wrapper which uses the downloaded check icon by default
src/Components/Common/BouncyCheckbox.tsx
import_BouncyCheckbox,{typeIBouncyCheckboxProps,}from'react-native-bouncy-checkbox';importCheckIconfrom'@assets/Images/check.png';// you can also use require here if you prefer or if importing images doesn't work for youconstBouncyCheckbox=({
checkIconImageSource =CheckIcon,
...props}: IBouncyCheckboxProps)=>{return(<_BouncyCheckboxcheckIconImageSource={checkIconImageSource}{...props}/>);};export{BouncyCheckbox};
hey, thanks for this package it looks great! I've added it to a react native web project and the checkbox seems to toggle state correctly but no check icon is shown, so it's just a colour changing box currently...I've tried passing in an
iconComponent
but when i do that the iconComponent is always rendered, even when the box isn't checkedThe text was updated successfully, but these errors were encountered: