Represents the current value of a component.
NAME | DESCRIPTION | TYPE | REQUIRED |
---|---|---|---|
min |
The minimum value of this component's range. | integer | Required if now is set. |
max |
The maximum value of this component's range. | integer | Required if now is set. |
now |
The current value of this component's range. | integer | No |
NAME | DESCRIPTION | TYPE | REQUIRED |
---|---|---|---|
text |
A textual description of this component's value. | string | No |
This rule takes no arguments.
<TouchableOpacity accessibilityValue={{ min: 0, now: 50, max: 100 }} />
<TouchableOpacity accessibilityValue={{ text: "foo" }} />
<TouchableOpacity accessibilityValue={{ min: 0, now: 50, max: 100, text: "foo" }} />
<TouchableOpacity accessibilityValue={{ now: 50 }} />
<TouchableOpacity accessibilityValue="foo" />
<TouchableOpacity accessibilityValue={{ min: "0", now: "50", max: "100" }} />
<TouchableOpacity accessibilityValue={{ text: 0 }} />