import * as React from 'react'; import { Image as RNImage } from 'react-native'; import { getStyle } from './image.style'; import { ImageProps } from './image.type'; import { useTheme } from '../../theme'; import { useDefaultProps } from '../../utilities/useDefaultProps'; const Image: React.FunctionComponent = (incomingProps) => { const props = useDefaultProps('Image', incomingProps, {}); const { h, w, m, mt, mr, mb, ml, ms, p, pr, pt, pb, pl, minH, minW, maxH, maxW, style, rounded, roundedTop, roundedRight, roundedBottom, roundedLeft, borderColor, borderBottomColor, borderLeftColor, borderTopColor, borderRightColor, borderWidth, borderLeftWidth, borderRightWidth, borderBottomWidth, borderTopWidth, borderEndWidth, flex, shadow, shadowColor, position, top, right, bottom, left, zIndex, opacity, alignSelf, ...rest } = props; const { theme } = useTheme(); const computedStyle = getStyle(theme, props); return ; }; // Image.defaultProps = {}; export { Image };