UNPKG

@pavelgric/react-native-theme-provider

Version:
7 lines (6 loc) 814 B
import * as React from 'react'; import { ThemeContextProps, ThemeContextValue, ThemeBaseStylesContextValue, ThemeDispatchContextValue, Themes, Styles } from './types'; export declare const ThemeContext: React.Context<ThemeContextValue<any, any, any> | null>; export declare const ThemeBaseStylesContext: React.Context<ThemeBaseStylesContextValue<any, any> | null>; export declare const ThemeDispatchContext: React.Context<ThemeDispatchContextValue<any, any> | null>; export declare function ThemeProvider<T extends Themes, BS extends Styles<BS>, BSKey extends string, ThemeKey extends string, TP>({ children, initialTheme, onThemeChange, onThemeParamsChange, themes, baseStylesCreator, initialThemeParams, styleCacheManager, baseStylesKey, themeKey, }: ThemeContextProps<T, BS, BSKey, ThemeKey, TP>): JSX.Element;