添加 时出现此错误查看 中的组件.tsx 文件。
最佳答案
不需要使用 * 导入所有内容
它只是缺少的 react ,需要导入以便可以理解 JSX。
所以只要做以下
import React from 'react';
关于react-native - react 原生 : 'React' refers to a umd global but the current file is a module consider adding an import instead,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46276558/