Reputation: 1346
The react native checkbox is showing fine in android but in ios its showing as a little red dot. Does the checkbox work in ios or just android?
<CheckBox
label='I accept the Terms and Conditions'
value={this.state.checked}
onValueChange={() => this.setState({ checked: !this.state.checked })}
/>
Upvotes: 2
Views: 1103
Reputation: 28539
The CheckBox
component, provided by react-native
, only works on Android as it quite clearly states the following in the documentation
Renders a boolean input (Android only).
Also it does not have a label
prop.
Its listed props are:
disabled
onChange
onValueChange
testID
value
Upvotes: 2