我是反应原生的新手,并试图在屏幕上渲染我的第一个文本.
当我运行react-native run-ios然后单击进入我的示例应用程序时,我看到以下错误:
index.js在我的项目中存在,使用以下代码:
'use strict';
module.exports = require('./configs/main');
到目前为止,我尝试过以下方法:
1)为babel-preset-react-native重新安装npm
2)使用纱线去除然后重新添加babel-preset-react-native
yarn remove babel-preset-react-native
yarn add babel-preset-react-native@2.1.0
3)完全删除babel.rc
没有任何效果.渴望听到有关其他事情的建议和建议.
react-native ×1