这是我的代码。它产生非常 缓慢的涟漪效应。
<TouchableNativeFeedback
delayPressIn={1}
background={TouchableNativeFeedback.Ripple('#777')}
onPress={() => this._navigateTo(item.route)}>
</TouchableNativeFeedback>
根据此注释,您需要做的就是将TouchableNativeFeedback
组件的delayPressIn
属性设置为0
:
<TouchableNativeFeedback background={TouchableNativeFeedback.SelectableBackground()} delayPressIn={0}>
</TouchableNativeFeedback>