Quiero disminuir el valor del estado del contador mientras se presiona la opacidad táctil. Aquí está mi código actual.
export default function Example() { let [count, setCount] = useState(0); return ( <View style={styles.container}> <Text style={{ alignSelf: "center" , fontSize:50}} >{count} </Text> <TouchableOpacity onPress={() => setCount(count + 1)} onLongPress={() => {} style={styles.clickButton} > <Text> Tap or Hold</Text> </TouchableOpacity> </View> ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "#fff", padding: 10, justifyContent: "center", }, clickButton: { alignSelf: "center", backgroundColor: "blue", padding: 10, borderRadius: 10, }, });¿Cómo puedo lograr esto usando reaccionar nativo?