import React from 'react'; import { View } from 'react-native'; import type { BoxProps } from 'src/theme/themeTypes'; import type themeType from '../theme/theme'; import createViewStyle from 'src/themeUtils/createViewStyle'; function createBox(useTheme: () => T) { const Box = ({ children, view = {}, ...otherProps }: BoxProps) => { const theme = useTheme(); return ( {children} ); }; return Box; } export default createBox;