zoontek / react-native-bootsplash

🚀 Show a splash screen during app startup. Hide it when you are ready.
MIT License
3.74k stars 258 forks source link

Splash Screen not Hiding in Android #609

Closed pt147 closed 3 months ago

pt147 commented 3 months ago

Before submitting a new issue

Bug summary

Android Splash screen is not hiding.

Library version

6.1.1

Environment info

System:
  OS: macOS 14.5
  CPU: (8) arm64 Apple M1
  Memory: 50.33 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.11.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.17
    path: /opt/homebrew/bin/yarn
  npm:
    version: 8.9.0
    path: /opt/homebrew/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods: Not Found
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK:
    API Levels:
      - "23"
      - "25"
      - "26"
      - "27"
      - "28"
      - "29"
      - "30"
      - "31"
      - "33"
      - "34"
    Build Tools:
      - 28.0.3
      - 29.0.2
      - 29.0.3
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 32.1.0
      - 33.0.0
      - 33.0.0
      - 33.0.1
      - 34.0.0
    System Images:
      - android-30 | Google APIs Intel x86 Atom
      - android-30 | Google Play Intel x86 Atom_64
      - android-31 | Google APIs ARM 64 v8a
      - android-34 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2023.1 AI-231.9392.1.2311.11330709
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
npmPackages:
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.9
    wanted: 0.73.9
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Steps to reproduce

I followed each and every steps in the library but somehow the splash screen is not hiding. I am posting a short video of the bug.

https://github.com/user-attachments/assets/ed320de0-c01e-403d-9244-f209a8cafa70

Here is my App.tsx file:

Screenshot 2024-08-14 at 11 33 05 PM

Android MainActivity.kt file:

Screenshot 2024-08-14 at 11 33 55 PM

Android Manifest.xml file:

Screenshot 2024-08-14 at 11 34 49 PM

Reproducible sample code

<NavigationContainer
      onReady={() => {
        BootSplash.hide();
      }}>
      <Main />
    </NavigationContainer>
zoontek commented 3 months ago

There a small blink on start, making me think this is not correctly setted up.

If you are able to create a minimal repository example that prove that it is indeed correctly configured, I will reopen this and have a look (as the provided code works perfectly)