Skip to content

Commit

Permalink
Disable view flattening on withToggleVisibilityView
Browse files Browse the repository at this point in the history
  • Loading branch information
j-piasecki committed Jan 25, 2023
1 parent cc97ee4 commit 60e47c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/withToggleVisibilityView.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const toggleVisibilityViewPropTypes = {

export default function (WrappedComponent) {
const WithToggleVisibilityView = props => (
<View style={!props.isVisible && styles.visuallyHidden}>
<View style={!props.isVisible && styles.visuallyHidden} collapsable={false}>
<WrappedComponent
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
Expand Down

0 comments on commit 60e47c4

Please sign in to comment.