Expo独立Android应用程序不显示启动图像

时间:2018-06-16 16:46:48

标签: android reactjs react-native expo

json如下。 ios独立应用程序中的启动图像可以完美地工作,但由于某种原因它不能在android独立版上运行。在Android平台上,显示颜色为#172A3F的空白屏幕,但不显示启动图像。它适用于我在两个平台上使用url expo app提供的内容。

"android": {
  "package": "work.myapp.mobile",
  "versionCode": 36,
  "icon": "./icon.png",
  "permissions": [
    "ACCESS_COARSE_LOCATION",
    "ACCESS_FINE_LOCATION"
  ],
  "splash": {
    "backgroundColor": "#172A3F",
    "ldpi": "./app/assets/images/splash-v2.png",
    "mdpi": "./app/assets/images/splash-v2.png",
    "hdpi": "./app/assets/images/splash-v2.png",
    "xhdpi": "./app/assets/images/splash-v2.png",
    "xxhdpi": "./app/assets/images/splash-v2.png",
    "xxxhdpi": "./app/assets/images/splash-v2.png",
    "resizeMode": "cover"
  },
  "config": {
    "googleMaps": {
      "apiKey": "myappkey"
    }
  }
}

0 个答案:

没有答案