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.

13 lines (12 loc) 494 B
import type { ComponentType, ReactNode } from 'react'; import { NativeTheme, ThemeBase, WebTheme } from './base-theme-types'; export interface FunctionProviderProps<T> { baseTheme: ThemeBase; children?: ReactNode | ReactNode[]; ThemeProviderComponent?: ComponentType<{ theme?: T; children?: ReactNode | ReactNode[]; }>; } export type NativeFunctionProvider = FunctionProviderProps<NativeTheme>; export type WebFunctionProvider = FunctionProviderProps<WebTheme>;