Skip to content

Commit

Permalink
refactor: implements a check for the existence of the text
Browse files Browse the repository at this point in the history
If the user does not enter text, the space for text will be removed.
  • Loading branch information
edsonjuniornarvaes authored Jul 15, 2022
1 parent 67857e6 commit 99a8e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BouncyCheckbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class BouncyCheckbox extends React.Component<IBouncyCheckboxProps, IState> {
} = this.props;
const { checked } = this.state;
return (
!disableText &&
!disableText || typeof disableText === "undefined" &&
(textComponent || (
<View style={[styles.textContainer, textContainerStyle]}>
<Text
Expand Down

0 comments on commit 99a8e8c

Please sign in to comment.