简体   繁体   中英

Splash screen blur when using react native with expo

When I opened my splash screen on gallery it looks fine, no blur, but why when I add it to my react native expo project it looks like this? can I use svg for my splash?

在此处输入图像描述

here's code on my app.json .

{
  "name": "thisisname",
  "displayName": "thisisname",
  "expo": {
    "name": "thisisname",
    "slug": "thisisname",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "assetBundlePatterns": [
      "**/*"
    ],
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#000000"
    },
    "android": {
      "package": "nameofpackage"
    }
  }
}

  1. Expo splash image must be PNG according to https://docs.expo.io/versions/latest/config/app/#image

  2. You should show us the difference between the way the splash screen looks in your gallery VS how it looks on your project..

  3. try to enhance the image quality

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM