在博览会上看好资产后,资产没有显示在我的本机应用程序中,尽管它在本地主机中工作
App.json文件
{
"expo": {
"name": "بيوتي خدمات المنزل",
"description": "Home Services App",
"slug": "front_end_test",
"version": "0.0.22",
"privacy": "public",
"sdkVersion": "31.0.0",
"platforms": [
"ios",
"android"
],
"orientation": "portrait",
"icon": "./assets/main-icon.png",
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*",
"assets/images/*"
],
"ios": {
"supportsTablet": false,
"bundleIdentifier": "buetihomeservice",
"infoPlist": {
"NSPhotoLibraryUsageDescription": "Upload your images to showcase it in the bueti customer application."
}
},
"android": {
"package": "com.beuti.homeservices"
},
"androidStatusBar": {
"barStyle": "light-content",
"backgroundColor": "#000000"
},
"splash": {
"image": "./assets/splash1.png",
"backgroundColor": "#9E2992"
}
}
}
将图像导入我的组件中:
<Image
source={require('./../assets/images/raneen.jpg')}
style={{ width: 105, height: 83 }}
/>
Expo-cli版本:31.0.0
没有错误消息