import React from 'react'; import ThemeContext from './context'; import DefaultTheme from './DefaultTheme'; export interface AnyObject { [restProps: string]: any; } export interface ThemeProps { theme: AnnaNative.Theme; } type WithThemeComponentType = React.FC & { [restProps: string]: any }; function withTheme( Component: React.ComponentType, ): WithThemeComponentType> { const withThemeComponent: React.FC> = props => { return ( {context => ( )} ); }; return withThemeComponent; } export default withTheme;