反应原生 可触摸原生反馈 涟漪太慢了



这是我的代码。它产生非常 缓慢的涟漪效应。

<TouchableNativeFeedback
delayPressIn={1}
background={TouchableNativeFeedback.Ripple('#777')}
onPress={() => this._navigateTo(item.route)}>
</TouchableNativeFeedback>

根据此注释,您需要做的就是将TouchableNativeFeedback组件的delayPressIn属性设置为0

<TouchableNativeFeedback background={TouchableNativeFeedback.SelectableBackground()} delayPressIn={0}>
</TouchableNativeFeedback>

最新更新