Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 28460

Why Splash screen keeps appearing in the background after Login screen loaded?

$
0
0

I'm setting the Splash screen icon and color through app.json:

When i tried to test the app on Android emulator it work properly, but after executing the apk the issues seems to appear again

Here is the splash screen code snippet from app.json file:

"platforms": [
    "ios",
    "android"
],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
    "image": "./assets/splash.png",
    "resizeMode": "contain",
    "backgroundColor": "#ffd525"
}

I expected the Login screen to appear as:

enter image description here

But it keeps appearing as:

enter image description here

Dependencies used:

"dependencies": {
    "expo": "^32.0.0",
    "native-base": "^2.12.1",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk- 
    32.0.0.tar.gz",
    "react-native-paper": "^2.15.2",
    "react-navigation": "3.1.2"
}

Viewing all articles
Browse latest Browse all 28460

Trending Articles