: 성공적으로 계정생성 되면, 현재 유저 정보 가져오기
https://rnfirebase.io/auth/usage
...
import auth from '@react-native-firebase/auth';
...
const onSubmit = (): void => {
// navigation.replace('RegisterDevice');
auth()
.createUserWithEmailAndPassword(userID, password)
.then(() => {
console.log('User account created and signed in');
console.log(auth().currentUser);
})
.catch(err => console.log(err));
};
const resetPassword = () => {
auth()
.sendPasswordResetEmail(userID)
.then(() => console.log('reset email sent'))
.catch(err => console.log(err));
};