-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stuck On Splash #83
Comments
Please provide some code (JS) |
MainActivity.java
AndroidManifest.xml
App.js
AuthLoading.js
im confused because i cant trace error.. and some device install from playstore running well thanks in advance @zoontek |
i think this issues because hermes enabled. |
@edoofx Did you tried facebook/react-native#26400 (comment) ? |
yep, add this code
now work like a charm. thanks in advance for response @zoontek |
@edoofx I still have this problem with RN 0.61.5, despite I have the following code:
react-native-bootsplash version: 2.2.4 Will it help if I upgrade React Native to 0.62? I do not know how to make this work, the splashscreen is stuck on load. |
@afilp Where do you call |
@zoontek Thanks! We call it in Main.js which is called by index.js. Note that it used to work. We made several changes like
Note: I did debug the code and it reaches the |
It's probably a side effect then π Can you reduce the amount of code by commenting some part to isolate the issue? |
@zoontek I found the problem, sorry, I also had code from react-native-splashscreen. Now it shows the splashscreen. I have a problem with immediate hide though:
|
@afilp You have to hide after initial render. Use componentDidMount or useEffect for that |
@zoontek Thanks, I do this exactly as you say, in |
@afilp Does |
@zoontek I removed rendering of react-navigation just for test:
It looks a simple render, unfortunately the splash screen first hides and then "Waiting..." appears. I even did this, to test
Still the splashscreen does not show in JS, even with the |
I used to have See below, I deliberately used a different What causes this padding and how can we remove it? |
@afilp If your splash is just a logo, use the CLI to generate new assets without external padding. |
@zoontek Good news, I managed to fix the problem with the I will also check your suggestion about the CLI, thanks a lot for your great support! |
It did work! But the cli creates the proper files for the
For example, I wanted to do this for
Could another question be added in the CLI maybe? ("Android: Which flavor to generate images for? main") |
@afilp Not for now. We worked on using react-native CLI on the next major version, so our priority is to migrate and keep a rock-solid developer experience with it. After that, maybe we will add additional options. |
The least I can do for your great support, is this "typo-fix" PR: |
π» My environment
π΅οΈββοΈ Reproducing the issue
when im run with :
npx react-native run-android (DEBUG) : Running Well
npx react-native run-android --variant=release : Running Well
gradlew assembleRelease , install manual on device : Running Well
here we go, its time to upload to playstore
gradlew bundleRelease (which is created AAB) and stuck (wont hide) at splash screen when im downloaded from playstore
π€Solution
Do you know what needs to be done to address this issue?
Ideally, provide a pull request with a fix.
The text was updated successfully, but these errors were encountered: