import React from 'react'; import { Appearance, ColorValue } from 'react-native'; import { SvgXml, XmlProps } from 'react-native-svg'; export interface MIconProps extends Omit { color?: ColorValue; size?: number; } export const createSvgIcon = (xml: string) => ({ color, fillOpacity = 1.0, size = 24, ...props }: MIconProps) => { const defaultIconColor = Appearance.getColorScheme() === 'light' ? '#000000' : '#ffffff'; return ( ); };