I have this little concern wherein when I tried to do a onLongPress with Pressable. the function associated to that are only called once.
How can I have it continuously delete the value on textInput when I hold the pressable?
Sample Code:
<Pressable
style={({ pressed }) => [
styles.deleteStyle,
{
opacity: pressed
? 0.5
: 1,
}]}
onPress={() => { delDigit() }}
onLongPress={() => { delDigit() }}
>
<Icon style={[{ color: '#FD6B89' }]} name="backspace" size={30} />
</Pressable>
Thanks in advance!