I want to implement a loading spinner in my react native app while waiting for firebase authentification to be done.
Here's my login function:
async (email, password) => {
try {
await auth().signInWithEmailAndPassword(email, password);
} catch (e) {
alert(e);
}
}
Thanks in advance for your answers!