import { IconProvider } from '@ui-kitten/components' ; import { SvgProps } from 'react-native-svg' ; import { findIconByName } from 'react-native-eva-icons/icons' ; import { EvaIcon } from './evaIcon.component' ; export const createIconsMap = ( ) : { [ key ] : IconProvider < SvgProps > ; } => { return new Proxy ( { } , { get ( target , name ) { return new EvaIcon ( findIconByName ( name ) ) ; } , } ) ; } ;