title: React-native: Super expression must either be null or a function, not undefined
body: <p>I have seen similar questions asked but I can't seem to indentify the problem.
  I am using react native v 0.27
  I have changed all my require methods into imports.</p>
  
  <p>Here's the error I receive:</p>
  
  <p><a href="https://i.stack.imgur.com/IzwNV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IzwNV.png" alt="enter image description here"></a></p>
  
  <p>I don't know if its relevant, but the first position of the error points to my LoginComp.js file which contains the following code:</p>
  
  <pre><code>/**
   * Sample React Native App
   * https://github.com/facebook/react-native
   */
  'use strict';
  import React, {
    AppRegistry,
    Component,
    StyleSheet,
    Text,
    View,
    Image,
    TextInput,
    Button,
    TouchableHighlight
  } from 'react-native';
  
  class LoginComp extends Component {
    constructor(){
      super(props);
    }
    render() {
      return (
        &lt;View style={{flex: 1}}&gt;
          &lt;View style={this.props.styles.loginLogoContainer}&gt;
            &lt;Image style={this.props.styles.view1logo} source={require('../imgs/Logo.png')} /&gt;
          &lt;/View&gt;
          &lt;View style={this.props.styles.loginContainer}&gt;
            &lt;Text&gt;Użytkownik:&lt;/Text&gt;
            &lt;TextInput
              style={this.props.styles.defaultInput}
              placeholder="Użytkownik"
              stretch={true}
              autoComplete={false}
              autoCorrect={false}
            /&gt;
            &lt;Text&gt;Hasło:&lt;/Text&gt;
            &lt;TextInput
              style={this.props.styles.defaultInput}
              placeholder="Hasło"
              stretch={true}
              autoComplete={false}
              autoCorrect={false}
              secureTextEntry={true}
            /&gt;
          &lt;TouchableHighlight onPress={this.props.LoginPress}&gt;
              &lt;Text style={this.props.styles.loginButton}&gt;Login&lt;/Text&gt;
            &lt;/TouchableHighlight&gt;
          &lt;/View&gt;
          &lt;View style={this.props.styles.registrationWrapper}&gt;
            &lt;Text&gt;- lub -&lt;/Text&gt;
            &lt;TouchableHighlight onPress={this.props.t_Registration}&gt;
              &lt;Text style={this.props.styles.registration}&gt;Załóż nowe konto&lt;/Text&gt;
            &lt;/TouchableHighlight&gt;
          &lt;/View&gt;
        &lt;/View&gt;
      );
    }
  }
  
  module.exports = LoginComp;
  </code></pre>