【问题标题】:splash screen and icon are not updated when building my app with eas build使用 eas build 构建我的应用程序时,启动屏幕和图标未更新
【发布时间】:2022-07-18 22:53:55
【问题描述】:

我正在尝试使用 eas-cli 使我的应用程序的 .aab 和 .apk 与本机反应,一切都非常好,但尽管我更改了 app.json 中的版本并更新了图像目录,在我的手机上安装应用程序会使用 expo 默认提供的图标和启动画面。我想知道如何更新它们,我已经验证我的目录没问题

app.json

{
  "expo": {
    "name": "xooc-numeros",
    "slug": "xooc-numeros",
    "version": "2.2.1",
    "orientation": "portrait",
    "icon": "./assets/imgs/icon1.png",
    "userInterfaceStyle": "light",
    "splash": {
      "image": "./assets/imgs/splash1.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "packagerOpts": {
      "sourceExts": [
        "cjs"
      ]
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/imgs/adaptative-icon1.png",
        "backgroundColor": "#000000"
      },
      "versionCode": 3
    },
    "web": {
      "favicon": "./assets/imgs/adaptative-icon1.png"
    },
    "description": "Contar números en maya"
  }
}

eas.json

  {
  "cli": {
    "version": ">= 0.52.0"
  },
  "build": {
    "development": {
      "distribution": "internal",
      "android": {
        "gradleCommand": ":app:assembleDebug"
      },
      "ios": {
        "buildConfiguration": "Debug"
      }
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {}
  },
  "submit": {
    "production": {}
  }
}

【问题讨论】:

    标签: android reactjs react-native expo splash-screen


    【解决方案1】:

    您找到解决方案了吗?我也有同样的问题

    【讨论】:

    • Keisel Bar't,请不要添加 Me too 作为答案。它实际上并没有提供问题的答案。如果你有一个不同但相关的问题,那么ask它(如果它有助于提供上下文,请参考这个问题)。如果您对这个特定问题感兴趣,您可以upvote 它,留下comment,或者在您有足够的reputation 时开始bounty
    猜你喜欢
    • 1970-01-01
    • 2016-01-05
    • 1970-01-01
    • 1970-01-01
    • 2017-03-24
    • 2015-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多