Skip to content

Commit 91aa009

Browse files
authored
Merge pull request #111 from edsonjuniornarvaes/patch-1
refactor: implements a check for the existence of the text
2 parents 67857e6 + 99a8e8c commit 91aa009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/BouncyCheckbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class BouncyCheckbox extends React.Component<IBouncyCheckboxProps, IState> {
141141
} = this.props;
142142
const { checked } = this.state;
143143
return (
144-
!disableText &&
144+
!disableText || typeof disableText === "undefined" &&
145145
(textComponent || (
146146
<View style={[styles.textContainer, textContainerStyle]}>
147147
<Text

0 commit comments

Comments
 (0)