Comments (6)
@kevinranks Just published 5.5.0-rc.1
that use system dark mode setting instead of the Appearance
module. Try it! 🙂
from react-native-bootsplash.
Hi @kevinranks! First, thanks for buying a license, it helps a lot 🙏
Like I said in #484, it's not possible to use the user preferred theme (at least the one enforced in the app) as the system starts showing the splash screen (using android:windowSplashScreenBackground
, android:windowSplashScreenBrandingImage
, etc), then your app starts. This allow instant opening response, but makes advanced customization impossible.
![Screenshot 2024-03-28 at 10 46 16](https://private-user-images.githubusercontent.com/1902323/317678536-fcf6b5f7-cc25-4989-afd3-e81d654b7a88.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc5OTI4MDYsIm5iZiI6MTcxNzk5MjUwNiwicGF0aCI6Ii8xOTAyMzIzLzMxNzY3ODUzNi1mY2Y2YjVmNy1jYzI1LTQ5ODktYWZkMy1lODFkNjU0YjdhODgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTBUMDQwODI2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTAyYWVjMGM2ZjQzOTUzZTY2YjdlOGI2OTYxZmY1ZmNjMTFiMmNhMzVkOTBjOTZhZTczNTQ5YTllNGQ5OGUxMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.vsOWo9CugvdikzPbgwHvcMSzP21EgmeKuHIhjs3Us98)
But there's also something I miss: I tend to never use per-app system settings overrides and I didn't know that the Appearance
module was able to override that (for me, this should be done user-side: Appearance.getColorScheme()
should return the system preference, but you could be able to override it and saves it in MMKV
, AsyncStorage
or else)
Knowing that, I will replace the useColorScheme
library usage with an exported constant and always respect the system setting instead. Expect a 5.5.0.rc-1
that contain the fix this week-end.
from react-native-bootsplash.
Hi @kevinranks! First, thanks for buying a license, it helps a lot 🙏
Like I said in #484, it's not possible to use the user preferred theme (at least the one enforced in the app) as the system starts showing the splash screen (using
android:windowSplashScreenBackground
,android:windowSplashScreenBrandingImage
, etc), then your app starts. This allow instant opening response, but makes advanced customization impossible.But there's also something I miss: I tend to never use per-app system settings overrides and I didn't know that the `Appearance` module was able to override that (for me, this should be done user-side: `Appearance.getColorScheme()` should return the system preference, but you could be able to override it and saves it in `MMKV`, `AsyncStorage` or else)
Knowing that, I will replace the
useColorScheme
library usage with an exported constant and always respect the system setting instead. Expect a5.5.0.rc-1
that contain the fix this week-end.
Thank you! Yeah, Appearance.setColorScheme() allows you to set a local app preferred scheme that overrides what useColorSCheme
and getColorSCheme
returns. So if this library grabbed the preferred scheme directly from the system instead, it should never end up with the issue of the splash screen switching between screens. And it would still allow developers to use the local color scheme for their app UI.
Will keep an eye on the releases. Thanks again
from react-native-bootsplash.
Available in 5.5.0
from react-native-bootsplash.
Hi @zoontek
First of all Thanks for the Amazing library, I have just switched raect-native-splash screen to react-native-bootsplash.
I am getting stuck on setting the system theme instead of the systemColorScheme.
Could you please give me some examples to set systemTheme instead of systemColorScheme
from react-native-bootsplash.
@fahadJariwala It uses the system theme, not the one defined / overwritten in your app.
As the splash screen starts BEFORE your app (for faster launch), you can't enforce light / dark mode. It follows the system setting.
from react-native-bootsplash.
Related Issues (20)
- Background image and linear gradient baackground color
- Splash Screen Reappears During Screen Transitions on Android HOT 10
- Crash on Android <= 9 - Attempt to invoke virtual method Drawable.isProjected() on a null object reference - solved in 5.1.2 HOT 2
- Bug when assembleeRelease HOT 1
- iOS error during debug scheme starting HOT 2
- How can i show code push progress bar in splash screen? HOT 1
- Output/Document need to manually create missing images HOT 1
- Default Android system splashscreen appears before my custom splashscreen HOT 1
- 我在屏幕中间放一个logo,我还需要在屏幕底部放些文字,要怎么做呢?
- Add plugin for nx HOT 1
- splash icon disappeared in android HOT 3
- Adding android:windowBackground causes it to appear after original splash hides HOT 3
- Generated background has incorrect color HOT 6
- Generate splashscreen HOT 1
- iOS: building failed with RN 0.73 and new arch enabled HOT 3
- RN 0.74 - How to avoid `createRootViewWithBridge` HOT 1
- Small icon size on Samsung devices with Android 12 HOT 3
- Expo config plugin overrides AppDelegate imports from other plugins HOT 8
- circle in the center at the beginning of the splash screen display (android) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-bootsplash.