@@ -55,35 +55,53 @@ import BouncyCheckbox from "react-native-bouncy-checkbox";
5555```
5656
5757
58- ## Customizable Usage
58+ ## Basic Usage
5959
60- ``` js
60+ ``` jsx
6161< BouncyCheckbox
6262 isChecked
6363 textColor= " #000"
6464 fillColor= " red"
65- iconComponent= {your- own- component}
66- fontFamily= " JosefinSans-Regular"
6765 text= " Buy tickets for concert 🎉 🎊"
6866/ >
6967```
7068
7169
70+ ## Advanced Custom Usage
71+
72+ ``` jsx
73+ < BouncyCheckbox
74+ isChecked= {false }
75+ textColor= " #000"
76+ unfillColor= " white"
77+ fontFamily= " JosefinSans-Regular"
78+ iconComponent= {
79+ < Image
80+ style= {{ height: 10 , width: 10 }}
81+ source= {require (" ./assets/checkmark.png" )}
82+ / >
83+ }
84+ text= " Custom Icon Example"
85+ / >
86+ ```
87+
88+
7289### Configuration - Props
7390
74- | Property | Type | Default | Description |
75- | ------------- | :-------: | :-----------------: | --------------------------------------------------------------------- |
76- | text | string | Call my mom 😇 | set the checkbox's text |
77- | textColor | color | #757575 | change the text's color |
78- | fontFamily | string | JosefinSans-Regular | set your own font family |
79- | fontSize | number | 16 | change the text's font size |
80- | isChecked | boolean | false | set the default checkbox value |
81- | checkboxSize | number | 25 | change the checkbox's size |
82- | borderRadius | number | size/2 | change the checkbox's border radius if you do not want the circle one |
83- | borderColor | color | #f09f48 | change the checkbox's border color |
84- | fillColor | color | #f09f48 | change the checkbox's filled color |
85- | unfillColor | color | transparent | change the checkbox's un-filled color when it's not checked |
86- | iconComponent | component | Icon | set your own icon component |
91+ | Property | Type | Default | Description |
92+ | ------------- | :-------: | :------------: | --------------------------------------------------------------------- |
93+ | text | string | Call my mom 😇 | set the checkbox's text |
94+ | textColor | color | #757575 | change the text's color |
95+ | fontFamily | string | default | set your own font family |
96+ | fontSize | number | 16 | change the text's font size |
97+ | isChecked | boolean | false | set the default checkbox value |
98+ | checkboxSize | number | 25 | change the checkbox's size |
99+ | borderRadius | number | size/2 | change the checkbox's border radius if you do not want the circle one |
100+ | borderColor | color | #f09f48 | change the checkbox's border color |
101+ | fillColor | color | #f09f48 | change the checkbox's filled color |
102+ | unfillColor | color | transparent | change the checkbox's un-filled color when it's not checked |
103+ | iconComponent | component | Icon | set your own icon component |
104+ | onPress | function | null | set your own onPress functionality after the bounce effect |
87105
88106
89107### Future Plans
0 commit comments