这种路径是在js文件目录查找
<Image source = {require('./img/danjianbao.png')} style={{width: 40, height: 40}}/>
需要添加../来退回上个路径,才能查找到img文件
<Image source = {require('./../img/danjianbao.png')} style={{width: 40, height: 40}}/>
这种路径是在js文件目录查找
<Image source = {require('./img/danjianbao.png')} style={{width: 40, height: 40}}/>
需要添加../来退回上个路径,才能查找到img文件
<Image source = {require('./../img/danjianbao.png')} style={{width: 40, height: 40}}/>