How can I disable a button after it gets pressed once in a functional component??
Here's my code:
const Verify = () => {
firebase
.auth()
.currentUser.sendEmailVerification()
.then(() => {
Alert.alert(
'Code Sent')
});
};
<Button onPress={() => Verify();} />