UNPKG

@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.

16 lines (15 loc) 735 B
import React from 'react'; import type { ColorFromTheme, ColorNameOrValueFromTheme } from './color.types'; import type { LayoutStyleProps } from './style-attributes.interfaces'; export interface BaseButtonProps<Value = number, StyleProps extends LayoutStyleProps<Value> = LayoutStyleProps<Value>> { onPress?: () => void; text?: string; renderLeft?: () => React.ReactElement; renderRight?: () => React.ReactElement; isSelected?: boolean; style?: StyleProps; } export interface BaseGhostButtonProps<Value = number, StyleProps = {}> extends BaseButtonProps<Value, StyleProps & LayoutStyleProps<Value>> { textColorNameOrValueFromTheme: ColorFromTheme; backgroundColorFromTheme: ColorNameOrValueFromTheme; }