Why does v41.0.1 have no background property configuration

Please provide the following:

  1. SDK Version: 41.0.1
  2. Platforms(Android/iOS/web/all): all
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Replace this section with as much relevant information as possible and any relevant code along with your question.

I can also set the background color of the Expo application in version 40.0.0, but I can’t see this configuration in app.json in 41.0.1. Where can I see the comparative documents? A comparison is best to understand.

40.0.0

{
  "expo": {
    "name": "M6",
    "description": "hello world",
    "slug": "M6",
    "version": "1.0.5",
    "orientation": "default",
    "userInterfaceStyle": "dark",
    "icon": "./assets/icon.png",
    "backgroundColor": "#00000088",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#00000088"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#00000088"
      },
      "package": "com.baorun.handbook.a08"
    },
    "web": {
      "favicon": "./assets/favicon.png"
    }
  }
}

41.0.1

{
  "expo": {
    "name": "test-app",
    "slug": "test-app",
    "version": "1.0.0",
    "orientation": "default",
    "icon": "./assets/images/icon.png",
    "scheme": "myapp",
    "userInterfaceStyle": "automatic",
    "splash": {
      "image": "./assets/images/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#00000000"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/images/adaptive-icon.png",
        "backgroundColor": "#00000000"
      },
      "package": "com.fengmo.testapp"
    },
    "web": {
      "favicon": "./assets/images/favicon.png"
    }
  }
}

Hi @fengmo,

Sorry for the delay. We generate the app.json / app.config.js - Expo Documentation page dynamically with the JSON schema we use to validate the manifest. You should be able to switch versions and see some changes.

As for the backgroundColor, this property is not removed and is still available in SDK 42. You can see it for SDK 41 and SDK 40 as well.

Be aware that this is just the default background color on Android. If you use a library like React Navigation, this background has an overlay from that page with a different theme set.

Cheers,
Cedric

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.