@janiscommerce/ui-native
Version:
components library for Janis app
26 lines (25 loc) • 1.14 kB
TypeScript
import React from 'react';
import type { SvgProps } from 'react-native-svg';
import { ViewProps } from 'react-native';
declare const svgsMapping: {
'empty-illustration': ({ ...props }: Isvg) => React.JSX.Element;
'empty-list-illustration': ({ ...props }: Isvg) => React.JSX.Element;
'janis-iso': ({ ...props }: Isvg) => React.JSX.Element;
'janis-commerce-logo': ({ ...props }: Isvg) => React.JSX.Element;
'janis-commerce-logo-qa': ({ ...props }: Isvg) => React.JSX.Element;
'janis-commerce-logo-beta': ({ ...props }: Isvg) => React.JSX.Element;
'login-illustration': ({ ...props }: Isvg) => React.JSX.Element;
'no-notifications': ({ ...props }: Isvg) => React.JSX.Element;
'containers-illustration': ({ ...props }: Isvg) => React.JSX.Element;
};
export type Names = keyof typeof svgsMapping;
export declare const svgsNames: Names[];
export interface Isvg extends SvgProps, ViewProps {
name?: Names;
width?: number;
height?: number;
size?: number;
xmlns?: string;
}
declare const Svg: ({ name, width, height, size, ...props }: Isvg) => React.JSX.Element | null;
export default Svg;