React Native Expo Snack にてFirebaseを使ったときのハマり Device: (865:668) undefined is not an object (evaluating 't.stack.replace')


Device: (865:668) undefined is not an object (evaluating 't.stack.replace')

Expo Snack 特有のエラーでした。

index.js
handleSubmit = () => {
  firebase
    .auth()
    .createUserWithEmailAndPassword(this.state.email, this.state.password)
    .then(user => {})
    .catch(error => {
     - console.log(error);
     + console.log(error.code);
     + console.log(error.message);
    });
};