- 错误:
将react-native版本升级到0.48版本后,出现了上述的问题,
could not resolve xxxx/src/img/tabbar/pfb_tabbar_homepage@2x.png' as a file nor as a folder
- 解决方式:
require('./pic@2x.png') 或 require('./pic.ios.png')
要换为
require('./pic.png')
could not resolve xxxx/src/img/tabbar/pfb_tabbar_homepage@2x.png' as a file nor as a folder
require('./pic@2x.png') 或 require('./pic.ios.png')
要换为
require('./pic.png')
本文标题:关于升级到0.48版本后require()图片的问题
本文链接:https://www.haomeiwen.com/subject/znssuftx.html
网友评论