@janiscommerce/ui-native
Version:
components library for Janis app
25 lines (24 loc) • 1.25 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;
};
export type Names = keyof typeof svgsMapping;
export declare const svgsNames: ("empty-illustration" | "empty-list-illustration" | "janis-iso" | "janis-commerce-logo" | "janis-commerce-logo-qa" | "janis-commerce-logo-beta" | "login-illustration" | "no-notifications")[];
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;