简体   繁体   中英

Transform error in react native when running code in android device

As I am running my first sample reactive native android app on the device and I am getting an error with a red screen, please help me to figure it out. Thanks.

For reference kindly look at the screen below. 在此处输入图片说明

And check my error terminal is bellow. 在此处输入图片说明

Downgrade your babel-preset-react-native to 4.0.0 as a dev dependency

yarn add --dev babel-preset-react-native@4.0.0

and try running it again.

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