hitSlop {top: number, left: number, bottom: number, right: number} 功能是扩展可触摸的区域,比如你的控件大小是30x40的,你可以设置hitSlop...参数为:{nativeEvent: { layout: {x, y, width, height}}}
onMagicTap function 当accessible为true时,如果用户做了一个双指轻触...把此属性设为false可以禁用这个优化,以确保对应视图在原生结构中存在。...Text属性
accessible bool 表明视图是否为可访问性元素,默认是true,可访问
ellipsizeMode enum('head', 'middle', 'tail', 'clip')...例子代码:
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View