jrocc
jrocc

Reputation: 1346

React Native checkbox showing up as red dot

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

Answers (1)

Andrew
Andrew

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:

Upvotes: 2

Related Questions