mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
Merge remote-tracking branch 'origin/master' into ts
# Conflicts: # .gitignore # index.d.ts
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -46,3 +46,6 @@ cn-doc.md
|
||||
#
|
||||
experimental/
|
||||
/lib/
|
||||
|
||||
# VS Code
|
||||
.vscode/
|
||||
|
||||
34
src/index.d.ts
vendored
34
src/index.d.ts
vendored
@@ -423,3 +423,37 @@ export interface MaskProps extends CommonPathProps {
|
||||
maskContentUnits?: TMaskUnits;
|
||||
}
|
||||
export const Mask: React.ComponentClass<MaskProps>;
|
||||
|
||||
export interface AST {
|
||||
tag: string;
|
||||
children: (AST | string)[] | (React.ReactElement | string)[];
|
||||
props: {};
|
||||
Tag: React.ComponentType;
|
||||
}
|
||||
|
||||
interface UriProps extends SvgProps {
|
||||
uri: string | null;
|
||||
override?: SvgProps;
|
||||
}
|
||||
export type UriState = { xml: string | null };
|
||||
|
||||
interface XmlProps extends SvgProps {
|
||||
xml: string | null;
|
||||
override?: SvgProps;
|
||||
}
|
||||
export type XmlState = { ast: AST | null };
|
||||
|
||||
interface AstProps extends SvgProps {
|
||||
ast: AST | null;
|
||||
override?: SvgProps;
|
||||
}
|
||||
|
||||
export function parse(xml: string): AST | null;
|
||||
|
||||
export const SvgAst: React.FunctionComponent<AstProps>;
|
||||
|
||||
export const SvgXml: React.FunctionComponent<XmlProps>;
|
||||
export const SvgFromXml: React.ComponentClass<XmlProps, XmlState>;
|
||||
|
||||
export const SvgUri: React.FunctionComponent<UriProps>;
|
||||
export const SvgFromUri: React.ComponentClass<UriProps, UriState>;
|
||||
|
||||
Reference in New Issue
Block a user