react-dual-theme
Version:
Theme context for React (Native) apps
20 lines (19 loc) • 561 B
TypeScript
declare module "ThemeContext" {
export const ThemeContext: any;
}
declare module "ThemeProvider" {
import * as React from 'react';
type ThemeProviderProps = {
children: React.Node;
theme: string | [string, string];
};
export function ThemeProvider({ children, theme }: ThemeProviderProps): any;
}
declare module "useTheme" {
export function useTheme(): any[];
}
declare module "index" {
import { useTheme } from "useTheme";
import { ThemeProvider } from "ThemeProvider";
export { useTheme, ThemeProvider };
}