Skip to content

Commit 99a8e8c

Browse files
refactor: implements a check for the existence of the text
If the user does not enter text, the space for text will be removed.
1 parent 67857e6 commit 99a8e8c

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)