Open HerickRaposo opened 3 years ago
Hi, even I'm facing this. Did you find any solution ?
Try adding SplashScreen.show(this) to onCreate in your MainActivity not MainApplication
Try adding SplashScreen.show(this) to onCreate in your MainActivity not MainApplication
Even that doesn't seem to be working.
Had same issue, solution for android:
import React, { useState, useEffect } from 'react';
Then inside your const ScreenName
useEffect(() => { SplashScreen.hide(); });
I have the same problem. does anyone have a solution?
this code is not related to the flash effect. A white screen comes before the splash screen appears. useEffect(() => { setTimeout(() => { SplashScreen.hide(); }, 100); }, []);
My question:
I have a project created in React Native 0.64.2, int this version the splash splash screen worked normaly but when i created other project using the same code in React Native version 0.65.1 i sad a white flash after splash screen. How can i resolve this?
My alternative solution.
For i not stay whit this i insert splashScreen.hide() in setTimeOut code, but i know this isnt the correct solution
My code:
myProject/App.js
myProject/android/src/main/java/com/myProject/MainActivity.java
myProject/android/src/main/java/com/myProject/SplashActivity.java
myProject/android/src/main/res/colors.xml
myProject/android/src/main/res/styles.xml
myProject/android/src/main/res/drawable/background_splash.xml
myProject/android/src/main/res/layout/launch_screen.xml
My development informations:
OS:Android React version: 17.0.2 React Native version:0,65,1 Splash Screen version:3.2.0