How to use the @react-navigation/core.useTheme function in @react-navigation/core

To help you get started, we’ve selected a few @react-navigation/core 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 expo / expo / home / components / SearchBar.js View on Github external
function StyledBackButton(props) {
  let theme = useTheme();

  return ;
}
github expo / expo / home / components / NavigationScrollView.native.tsx View on Github external
function useThemeBackgroundColor(props: StyledScrollViewProps, colorName: ThemedColors) {
  let theme = useTheme();
  let colorFromProps = props[`${theme}BackgroundColor`];

  if (colorFromProps) {
    return colorFromProps;
  } else {
    return Colors[theme][colorName];
  }
}