@devlander/styled-components-theme
Version:
Devlander's team utilizes this package during the development of their React Native projects. Its primary purpose is to facilitate code reuse by sharing types across multiple projects that uses the styled-components library.
23 lines (22 loc) • 867 B
TypeScript
import React from 'react';
import { ColorNameOrValueFromTheme } from '../../shared/types/color.types';
import { ThemeColorAttributes } from '../../shared/types/style-attributes.interfaces';
import type { TextStyle, ViewProps } from 'react-native';
export interface BaseHeaderPropsInterface extends Partial<ThemeColorAttributes> {
backgroundColorFromTheme?: ColorNameOrValueFromTheme;
subTitle?: string;
nestedScreen?: boolean;
subHeader?: () => React.JSX.Element;
onGoBack: () => void;
title: string;
applyGoBackToTitle?: boolean;
titleOnPress?: () => void;
titleFlex?: number;
onOpenDrawer?: () => void;
presentationModal?: boolean;
titleStyle?: TextStyle;
containerStyle?: ViewProps;
contentStyle?: ViewProps;
headerRightButton?: () => React.JSX.Element;
headerLeftButton?: () => React.JSX.Element;
}