勤做笔记,方便自己,帮助他人。
错误:Super expression must either be null or a function, not undefined
或者错误:Uncaught (in promise) TypeError: Super expression must either be null or a function
一般是 React.Component 的引用和书写错误。
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';