0
Is there any property in the TouchableOpacity
React Native which, when I pressed the increment button and held the touch, continued incrementing the values?
For example, I have this button:
<TouchableOpacity
style={styles.button}
onPress={()=>increment(item.id,item.amount)}
>
<Text> + </Text>
</TouchableOpacity>
That renders like this:
I would like to continue to increase the value by pressing the button.
Hello, Iury! Your answer may solve the problem, but I suggest you put the necessary code to reproduce it (read on [mcve]). By placing the code, your answer will have more value to future visitors (and also to the author of the question), as it will facilitate the understanding and reproduction of the solution.
– Rafael Tavares