import React, { ComponentType } from 'react' import { Theme } from './Theme/Theme' import { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native' import { styled, styledPressable } from '@nbottarini/react-native-styled' import { useTheme } from './context/ThemeContext' import { TokenResolveFunc } from './Theme/tokenResolver/TokenResolveFunc' type Styles = StyleProp type StylesFunc

= (props: P & { [x:string]: any }) => Styles export function themed( Component: ComponentType

, styles: Styles|StylesFunc, ): ComponentType { const StyledComponent = styled(Component as ComponentType, styles as any) as ComponentType return (props: E & P & { [x:string]: any }) => { const { ds, resolve } = useTheme() return } } export function themedPressable( Component: ComponentType

, styles: Styles|StylesFunc, pressedStyles: Styles|StylesFunc, ): ComponentType { const StyledComponent = styledPressable(Component as ComponentType, styles as any, pressedStyles as any) as ComponentType return (props: E & P & { pressed?: boolean, [x:string]: any }) => { const { ds, resolve } = useTheme() return } }