I need to call from my function "RegisterTaster" to my function "endRegisterAlert" but actually im not using constructor because i use the class like a const in react native.
How can i call the function ?
const Validator=(props)=>{
async function RegisterTaster(){
//do something...
endRegisterAlert();
}
function endRegisterAlert(){
//do something
}
return(
<Button onPress={async ()=> await RegisterTaster() }>
<Text >Register</Text>
</Button
);
}
export default Validator;
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment