react-native-elements
Version:
React Native Elements & UI Toolkit
8 lines (7 loc) • 336 B
TypeScript
import React from 'react';
import { ThemeProps } from './ThemeProvider';
export interface ThemedComponent {
displayName: string;
}
declare function withTheme<P = {}, T = {}>(WrappedComponent: React.ComponentType<P & ThemeProps<T>>, themeKey: string): React.FunctionComponent<Omit<P, keyof ThemeProps<T>>>;
export default withTheme;