Is it possible to set the splash background color according to the color scheme?
Hello, I am using it in the following way in my app “app.config.js” from SDK44, I leave a partial example with the minimum attributes:
const LIGHT_SPLASH = {
image: './assets/splash-dark-content.png',
backgroundColor: '#FFFFFF',
};
const DARK_SPLASH = {
image: './assets/splash-soft-white-content.png',
backgroundColor: '#000000',
};
const SHARED_SPLASH = {
splash: {
...LIGHT_SPLASH,
dark: {
...DARK_SPLASH,
},
},
};
export default {
splash: LIGHT_SPLASH,
ios: {
...SHARED_SPLASH,
},
android: {
...SHARED_SPLASH,
},
};
2 Likes
Hi @outatime, thank you very much! It works! I just don’t understand how hahah, I didn’t find anything about the “dark” param in the docs.
If true there isn’t much documentation, but @notbrent referenced this, here are the source codes in case you want to check,
1 Like
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.