The Icon.onPress is faster than the https://facebook.github.io/react-native/docs/view or https://facebook.github.io/react-native/docs/touchableopacity .
(Icon.onPress比https://facebook.github.io/react-native/docs/view或https://facebook.github.io/react-native/docs/touchableopacity更快。)
(我没有进行任何基准测试,但这非常值得注意。)
(我使用开发人员版本进行测试。)
(这是为什么 ?)
<Icon name="plus-circle" size={50} color="#66a6dd" onPress={this.alarmAddButtonClick} />
2.1m questions
2.1m answers
60 comments
56.8k users