import React, { useMemo } from 'react'; import Svg, { Path } from 'react-native-svg'; import type { RendererProps } from './RendererHelper'; const SVGRenderer: React.FC = ({ paths, height, width }) => ( {paths.map(({ color, path, thickness, opacity, combine }, i) => combine ? ( ) : ( path!.map((svgPath, j) => ( )) ) )} ); interface SVGRendererPathProps { path?: string[]; color: string; thickness: number; opacity: number; } const SVGRendererPath: React.FC = ({ path, color, thickness, opacity, }) => { const memoizedPath = useMemo(() => path?.join(' ') ?? '', [path]); return ( ); }; export default SVGRenderer;