错误React.createElement:类型无效

时间:2020-07-16 15:30:02

标签: ios reactjs react-native syntax-error

我注意到这是我的第一个反应本机应用程序,这就是我尝试导入第一个组件时的状态:

"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s%s, object,  You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at App.js:9., 
 in App (created by ExpoRoot)
    in RNCAppearanceProvider (at src/index.tsx:70)
    in AppearanceProvider (created by ExpoRoot)
    in ExpoRoot (at renderApplication.js:45)
    in RCTView (at AppContainer.js:109)
    in DevAppContainer (at AppContainer.js:124)
    in RCTView (at AppContainer.js:135)
    in AppContainer (at renderApplication.js:39)
* [native code]:null in __expoConsoleLog

Error

0 个答案:

没有答案