react-native报错:super expression must either be null or a function

 该错误原因是,包含Component的时候引用错了,错误代码:

import {Text, TextInput, View,Component} from 'react-native',这样写会报标题的错误

正确代码:

import {Component} from 'react'

你可能感兴趣的:(react-native报错:super expression must either be null or a function)