title: firebase2.default.firestore is not a function - React Firebase
body: <p>I am trying to use <strong>firestore</strong> in my reactjs app.</p>
  
  <p>When i call firestore from firebase config object.</p>
  
  <p>It says </p>
  
  <blockquote>
    <p>firebase2.default.firestore is not a function</p>
  </blockquote>
  
  <p>Here is the code</p>
  
  <pre><code>import firebase from 'firebase'
  
  const config = {
    apiKey: "AIzaSxxxxxxqpUeqKXI",
      authDomain: "payxxxxxa1.firebaseapp.com",
      databaseURL: "https://payxxxxxxxa1.firebaseio.com",
      projectId: "payxxxxxxja1",
      storageBucket: "payxxxxxa1.appspot.com",
      messagingSenderId: "281xxxxxxxx576"
  }
  
  firebase.initializeApp(config)
  
  export const fire = firebase
  export const ref = firebase.database().ref()
  export const firebaseAuth = firebase.auth
  export const messaging = firebase.messaging();
  export const db = firebase.firestore();
  </code></pre>
  
  <p>Firebase version is 4.5.0</p>
  
  <blockquote>
    <p>npm list firebase > firebase@4.5.0</p>
  </blockquote>
  
  <p>Am i doing wrong?</p>