import * as React from 'react'; import {Image as Image_, ImageSourcePropType, View} from 'react-native'; import {SvgXml} from 'react-native-svg'; import {Style} from 'twrnc/dist/esm/types'; import {TailwindFn} from 'twrnc'; type Props = { tw: TailwindFn; svg?: string; src?: ImageSourcePropType; style?: Style; width?: number; height?: number; accessibilityLabel: string; accessibilityHint?: string; }; const Image = ({ tw, svg, src, style, width, height, accessibilityLabel, accessibilityHint, }: Props): JSX.Element => { const defaultStyles = tw``; if (svg) { return ( ); } if (src) { return ( ); } return ; }; export default Image;