Is there a way to temporarily disable a touchable opacity for a minute after it is pressed?
let enable = true;
<TouchableOpacity
style={styles.btnSolid}
onPress={() => {
resetUserPswd(auth, Email, navigation);
enable = false;
setTimeout(() => (enable = true), 60000); // 60 seconds
}}
disabled={!enable}
>
<Text style={styles.btnTextSolid}>Send Email</Text>
</TouchableOpacity>
Thank you in advance.