我的react-native应用程序上的图像在模拟器上正确显示但是当在真实设备上安装应用程序时,一旦我关闭应用程序并再次重新打开它们就会消失。
//This is the way I use to display images :
<ContainerSection>
<Image source={require('../../images/logo.png') } />
</ContainerSection>
有什么建议吗?
答案 0 :(得分:0)
我认为有时这个问题会发生在本机应用中,因为在调试构建中它会从编码文件夹中获取图像,但是当make release build并将其安装在真实设备上时,它不会发生。