firebase .auth() .createUserWithEmailAndPassword(email,password) .then(authenticate=>{ return authenticate.user .updateProfile({ displayName: name }) .then(()=>{ this.props.navigation.replace('Home') }) }) .catch(error=>{ alert(error.message) })
setUploading(false) task.snapshot.ref.getDownloadURL().then(downloadURL => { user.updateProfile({ photoURL: downloadURL }) })