title: undefined is not a function (evaluating 'firebase.initializeApp(config)')
body: <p>I m trying to fire base connectivity with react native </p>
  
  <pre><code>import * as firebase from 'firebase';
  
  componentWillMount(){
          var config = {
           apiKey: "API_KEY",
           authDomain: "*******-****.firebaseapp.com",
           databaseURL: "https://*******-****.firebaseio.com",
           projectId: "*******-****",
           storageBucket: "*******-*****.appspot.com",
           messagingSenderId: "************",
  
      };
      firebase.initializeApp(config);
      console.log(firebase);
    }
  </code></pre>
  
  <p>How do I solve this error?</p>
  
  <p>Error:</p>
  
  <blockquote>
    <p>TypeError: undefined is not a function (evaluating 'firebase.initializeApp(config)')</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/paK4g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/paK4g.png" alt="enter image description here"></a></p>