Created
January 8, 2021 15:18
-
-
Save Mbbahar/8ec3a52d366611c836ca4fdd7682bce4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
import auth from '@react-native-firebase/auth'; | |
... | |
const __signIn = async () => { | |
try { | |
let response = await auth().signInWithEmailAndPassword(UserEmail, UserPassword) | |
if (response) { | |
console.log(response) | |
Alert.alert('Successful Login','Welcome the React Native') | |
} | |
} catch (e) { | |
console.error(e.message) | |
} | |
} | |
... | |
onPress={() => __signIn()} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment