mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-03 07:06:04 +00:00
More fixes:
- Definitions have an `id`, not a `name`. - There is no `Shape` export. - `Use` `width` and `height` are required.
This commit is contained in:
Vendored
+3
-7
@@ -37,7 +37,7 @@ export interface ClipProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface DefinitionProps {
|
export interface DefinitionProps {
|
||||||
name?: string,
|
id?: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StrokeProps {
|
export interface StrokeProps {
|
||||||
@@ -192,10 +192,6 @@ export interface RectProps extends CommonPathProps {
|
|||||||
}
|
}
|
||||||
export const Rect: React.ComponentClass<RectProps>;
|
export const Rect: React.ComponentClass<RectProps>;
|
||||||
|
|
||||||
export interface ShapeProps {
|
|
||||||
}
|
|
||||||
export const Shape: React.ComponentClass<ShapeProps>;
|
|
||||||
|
|
||||||
export interface StopProps {
|
export interface StopProps {
|
||||||
stopColor?: string,
|
stopColor?: string,
|
||||||
stopOpacity?: NumberProp,
|
stopOpacity?: NumberProp,
|
||||||
@@ -244,7 +240,7 @@ export const TextPath: React.ComponentClass<TextPathProps>;
|
|||||||
|
|
||||||
export interface UseProps extends CommonPathProps {
|
export interface UseProps extends CommonPathProps {
|
||||||
href: string,
|
href: string,
|
||||||
width?: string,
|
width: string,
|
||||||
height?: string,
|
height: string,
|
||||||
}
|
}
|
||||||
export const Use: React.ComponentClass<UseProps>;
|
export const Use: React.ComponentClass<UseProps>;
|
||||||
|
|||||||
Reference in New Issue
Block a user