Skip to content

Commit 9e1185b

Browse files
authored
changed collapsing to be false on android (#3170)
1 parent 3f964a2 commit 9e1185b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/checkbox/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import TouchableOpacity from '../touchableOpacity';
1717
import Text, {TextProps} from '../text';
1818
import View from '../view';
1919
import Icon from '../icon';
20+
import Constants from '../../commons/Constants';
2021

2122
const DEFAULT_SIZE = 24;
2223
const DEFAULT_COLOR = Colors.$backgroundPrimaryHeavy;
@@ -287,7 +288,7 @@ class Checkbox extends Component<CheckboxProps, CheckboxState> {
287288
const {label, labelStyle, containerStyle, labelProps, testID} = this.props;
288289

289290
return label ? (
290-
<View row centerV style={containerStyle}>
291+
<View row centerV style={containerStyle} collapsable={!Constants.isAndroid}>
291292
{this.renderCheckbox()}
292293
<Text flexS style={[this.styles.checkboxLabel, this.getLabelStyle(), labelStyle]} recorderTag={'unmask'} {...labelProps} onPress={this.onPress} testID={`${testID}.label`}>
293294
{label}

0 commit comments

Comments
 (0)