Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function StyledBackButton(props) {
let theme = useTheme();
return ;
}
function useThemeBackgroundColor(props: StyledScrollViewProps, colorName: ThemedColors) {
let theme = useTheme();
let colorFromProps = props[`${theme}BackgroundColor`];
if (colorFromProps) {
return colorFromProps;
} else {
return Colors[theme][colorName];
}
}