react-native-bootsplash: iOS 15 throws "react-native-bootsplash has not been initialized"
Bug summary
Having reports from sentry of errors in production for iOS 15 when calling RNBootSplash.hide({ fade: false }) that:
react-native-bootsplash has not been initialized
Any help with this would be appreciated - it’s affecting a lot of our users.
Library version
3.2.4
Environment info
info Fetching system and libraries information...
(node:36763) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
System:
OS: macOS 11.2.3
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 1.46 GB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.17.4 - ~/.nvm/versions/node/v14.17.4/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.14 - ~/.nvm/versions/node/v14.17.4/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK:
API Levels: 19, 23, 24, 25, 26, 27, 28, 29, 30
Build Tools: 24.0.1, 24.0.3, 26.0.3, 27.0.3, 28.0.3, 29.0.2, 29.0.3, 30.0.0, 30.0.2
System Images: android-19 | Google APIs ARM EABI v7a, android-19 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom, android-24 | Google Play Intel x86 Atom, android-26 | Google Play Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-R | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.6953283
Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_252 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.2 => 0.64.2
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Steps to reproduce
- Open the app
Reproducible sample code
RNBootSplash.hide({ fade: false })
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 34 (13 by maintainers)
The new version does not reject promises anymore, try it out 🙂
@oberruti Ok, you have to do it.
@efstathiosntonas Nobody submitted a fix for the moment.
So I just found out that enabling Supporting Multiple Windows causes bug. When app is opened, screen turns black,
getVisibilityStatusreturnhiddenbefore callhide().I couldn’t reproduce the issue, do you have a reproduction case? If you use iOS 15 beta, which version seems impacted?
https://user-images.githubusercontent.com/1902323/132122450-30c07cf2-51f3-4bda-b976-f4d0f7981710.mp4
I’m also experiencing this very same issue on react-native 0.64.2