title: No Firebase App '[DEFAULT]' has been created
body: <p>I realize that that there have already been several questions that address this kind of error, but none of them seem to provide the correct solution. I'm following Stephen Grider's React Native course on Udemy.</p>
  
  <p>I'm pretty sure I've followed everything exactly, so I'm guessing the problem might have to do with an update to React or Firebase or something else, but I might be completely wrong. When pressing the button that activates the following code in onButtonPress():</p>
  
  <pre><code>  state = { email: '', password: '', error: '' };
    //a definition of the component's state, updated with onChangeText
  
    onButtonPress() {
      const { email, password } = this.state;
  
      this.setState({ error: ' ' });
  
      firebase.auth().signInWithEmailAndPassword(email, password) //this line is a "promise"
        .catch(() =&gt; { //if it fails:
          firebase.auth().creatUserWithEmailAndPassword(email, password) //also returns a promoise
            .catch(() =&gt; { //if it also fails to create a username and password:
              this.setState({ error: 'Authentication Failed.' });
            });
        });
    }
  </code></pre>
  
  <p>I get the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/RrsXJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RrsXJ.png" alt="enter image description here"></a></p>
  
  <p>Since a lot of solutions on the web dealing with this error have to do with Firebase initialization, here's my code for that:</p>
  
  <pre><code>import React, { Component } from 'react';
  import { View } from 'react-native';
  import firebase from 'firebase';
  import { Header } from './components/common/index.js'; //selects index.js automatically
  import LoginForm from './components/LoginForm.js';
  
  class App extends Component {
    conponentWillMount() {
      //called before render, will automatically be called because it's a life cycle method
      firebase.initializeApp({
        apiKey: '(I actually have my api key here, I just do not want people to steal it, same with the other values)',
        authDomain: 'authenticationtutorial-ee660.firebaseapp.com',
        databaseURL: 'my databaseURL',
        projectId: 'my projectId',
        storageBucket: 'authenticationtutorial-ee660.appspot.com',
        messagingSenderId: 'my SenderId'
    });
    }
    render() {
      return (
        &lt;View&gt;
          &lt;Header headerText="Authentication" /&gt;
          &lt;LoginForm /&gt;
        &lt;/View&gt;
      );
    }
  }
  
  export default App;
  </code></pre>
  
  <p>Any help would be appreciated. I've been dealing with this error for about a week now, and with no help on the Udemy website, I've turned to Stack Overflow :)</p>