Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
659 views
in Technique[技术] by (71.8m points)

react-native-android - 为什么Icon.onPress比View.onPress或TouchableOpacity.onPress快?(Why is Icon.onPress is faster than View.onPress or TouchableOpacity.onPress?)

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.onPresshttps://facebook.github.io/react-native/docs/viewhttps://facebook.github.io/react-native/docs/touchableopacity更快。)

I did not do any benchmarking but this was very much noticable.

(我没有进行任何基准测试,但这非常值得注意。)

I used the developer build for testing.

(我使用开发人员版本进行测试。)

Why is that ?

(这是为什么 ?)

<Icon name="plus-circle"  size={50} color="#66a6dd" onPress={this.alarmAddButtonClick} />
  ask by Talespin_Kit translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...