简体   繁体   中英

React-Native: TransformError with processing babel-preset-react-native/index.js

使用命令“react-native run-ios”运行时转换错误由于此错误,它不会进入欢迎屏幕

Install babel-preset-react-native@2.1.0 and run the project.

In current project, do this...

yarn remove babel-preset-react-native
yarn add babel-preset-react-native@2.1.0

This worked for me, I hope it will for you too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM