Reagieren-native: Super-Ausdruck muss entweder null sein oder eine Funktion, die nicht undefined

Ich habe ähnliche Fragen gestellt, aber ich kann nicht scheinen, um zu erkennen das problem.
Ich bin mit react native v 0.27
Ich habe alles geändert, mein verlangen-Methoden in Importe.

Hier ist die Fehlermeldung die ich erhalte:

Reagieren-native: Super-Ausdruck muss entweder null sein oder eine Funktion, die nicht undefined

Ich weiß nicht ob das relevant ist, aber die erste position des Fehlers auf meine Punkte LoginComp.js Datei, die den folgenden code enthält:

/**
 * 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 (
      <View style={{flex: 1}}>
        <View style={this.props.styles.loginLogoContainer}>
          <Image style={this.props.styles.view1logo} source={require('../imgs/Logo.png')} />
        </View>
        <View style={this.props.styles.loginContainer}>
          <Text>Użytkownik:</Text>
          <TextInput
            style={this.props.styles.defaultInput}
            placeholder="Użytkownik"
            stretch={true}
            autoComplete={false}
            autoCorrect={false}
          />
          <Text>Hasło:</Text>
          <TextInput
            style={this.props.styles.defaultInput}
            placeholder="Hasło"
            stretch={true}
            autoComplete={false}
            autoCorrect={false}
            secureTextEntry={true}
          />
        <TouchableHighlight onPress={this.props.LoginPress}>
            <Text style={this.props.styles.loginButton}>Login</Text>
          </TouchableHighlight>
        </View>
        <View style={this.props.styles.registrationWrapper}>
          <Text>- lub -</Text>
          <TouchableHighlight onPress={this.props.t_Registration}>
            <Text style={this.props.styles.registration}>Załóż nowe konto</Text>
          </TouchableHighlight>
        </View>
      </View>
    );
  }
}

module.exports = LoginComp;
InformationsquelleAutor noa-dev | 2016-06-07
Schreibe einen Kommentar