How to use the @shoutem/ui/navigation.NavigationBar.showTitle function in @shoutem/ui

To help you get started, we’ve selected a few @shoutem/ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shoutem / extensions / shoutem-navigation / app / app.js View on Github external
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;
};