react native TouchableNativeFeedback ripple is too slow

Viewed 677

Here is my code. It produces very slow ripple effect.

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

As per this comment, all you need to do is set the delayPressIn attribute of the TouchableNativeFeedback component to 0:

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