title: react native - expected a component class, got [object Object]
body: <p>I got  expected a component class got object error when I try to use loginPage component which I created.</p>
  
  <p>here is index.ios.js</p>
  
  <pre><code>import React, {Component} from 'react';
  
  import {
      AppRegistry,
      View
  } from 'react-native';
  
  import loginPage from './pages/loginPage'
  
  class app extends Component {
      render() {
          return (
              &lt;View&gt;
                  &lt;loginPage/&gt;
              &lt;/View&gt;
          );
      }
  }
  
  AppRegistry.registerComponent('app', () =&gt; app);
  </code></pre>
  
  <p>and here is the loginPage.js</p>
  
  <pre><code>import React, { Component } from 'react';
  import {
      StyleSheet,
      Text,
      View
  } from 'react-native';
  
  export default class loginPage extends Component {
      render() {
          return (
              &lt;View&gt;
                  &lt;Text&gt;
                      Welcome to React Native!
                  &lt;/Text&gt;
              &lt;/View&gt;
          );
      }
  }
  </code></pre>