How to make splash background color dynamic?

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