title: view config getter callback for component 'div' must be a function (received 'undefined'). Make sure to start component names with a capital letter
body: <p>Error is: Invariant Violation: view config getter callback for component 'div' must be a function (received 'undefined'). Make sure to start component names with a capital letter.
  I am getting this error while trying to retrieve data from firebase into table component of react native that is ReactTable and also giving an empty array in the console when viewing data in my console and hence nothing appears in the output.</p>
  
  <pre><code>import React, { Component } from 'react';
  import { StyleSheet, View, Text, Button } from 'react-native';
  import ReactTable from 'react-table';
  import firebase from 'firebase';
  
  
  const firebaseConfig = {
  ...
  };
  firebase.initializeApp(firebaseConfig);
  
  
  export default class Form1 extends Component {
  constructor(props) {
      super(props);
  
      this.state = {
          data: [],
          columns: [
              {
                  Header: "email",
                  accessor: "email"
              },
              {
                  Header: "password",
                  accessor: "password"
              }
          ]
      }
  }
  
  componentDidMount() {
      const data = [];
      var query = firebase.database().ref("users");
      query.once("value").then((snapshot) =&gt; {
          snapshot.forEach((childSnapshot, index) =&gt; {
              let singleObj = {
                  email: childSnapshot.val().email,
                  password: childSnapshot.val().password,
              }
              data.push(singleObj);
  
              if (index === snapshot.length - 1) {
                  this.setState({ data: data });
              }
          });
      });
  }
  
  render() {
      return (
          &lt;div&gt;
              {this.state.data.length &gt; 0 &amp;&amp; &lt;ReactTable data={this.state.data} columns= 
  {this.state.columns} /&gt;}
          &lt;/div&gt;
      );
  }
  }
  
  const styles = StyleSheet.create({
  container: { flex: 1, padding: 16, paddingTop: 30, backgroundColor: '#fff' },
  head: { height: 40, backgroundColor: '#f1f8ff' },
  text: { margin: 6 }
  });
  </code></pre>