Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const appDidMount = (app) => {
const store = app.getStore();
const state = store.getState();
const settings = getExtensionSettings(state, ext());
const {
backgroundImage,
backgroundImageEnabledFirstScreen,
showTitle,
fitContainer,
} = settings;
// Setup background image of the NavigationBar component for all screens
if (backgroundImage && !backgroundImageEnabledFirstScreen) {
NavigationBar.globalNavigationBarImage = backgroundImage;
}
NavigationBar.showTitle = showTitle;
NavigationBar.fitContainer = fitContainer;
};