> Note: accessibilityComponentTypewill soon be deprecated. When possible, use accessibilityRole and accessibilityStates instead.
类型
必填
AccessibilityComponentTypes
否
accessibilityHint
An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not obvious from the accessibility label.
类型
必填
string
否
accessibilityLabel
Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.
类型
必填
node
否
accessibilityRole
类型
必填
AccessibilityRoles
否
accessibilityStates
类型
必填
array of AccessibilityStates
否
accessibilityTraits
类型
必填
AccessibilityTraits, ,array of AccessibilityTraits
否
accessible
类型
必填
bool
否
delayLongPress
从onPressIn开始,到onLongPress被调用的延迟。单位是毫秒.
类型
必填
number
否
delayPressIn
从触摸操作开始到onPressIn被调用的延迟。单位是毫秒。
类型
必填
number
否
delayPressOut
从触摸操作结束开始到onPressOut被调用的延迟。单位是毫秒。
类型
必填
number
否
disabled
如果设为true,则禁止此组件的一切交互。
类型
必填
bool
否
onLayout
当加载或者布局改变的时候被调用,参数为:
{nativeEvent: {layout: {x, y, width, height}}}
类型
必填
function
否
onLongPress
类型
必填
function
否
onPress
当触摸操作结束时调用,但如果被取消了则不调用(譬如响应者被一个滚动操作取代)。
类型
必填
function
否
onPressIn
Called as soon as the touchable element is pressed and invoked even before onPress. This can be useful when making network requests.
类型
必填
function
否
onPressOut
Called as soon as the touch is released even before onPress.