When to use TouchableNativeFeedback, TouchableHighlight or TouchableOpacity?

前端 未结 4 606
深忆病人
深忆病人 2021-01-29 22:45

In React Native, there are at least three ways to make a button: TouchableNativeFeedback, TouchableHighlight and TouchableOpacity. There i

4条回答
  •  醉梦人生
    2021-01-29 23:33

    If you want to

    • highlight button on press — use TouchableHighlight
    • change button's opacity on press — use TouchableOpacity

提交回复
热议问题