mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-23 03:06:28 +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 {
|
||||
name?: string,
|
||||
id?: string,
|
||||
}
|
||||
|
||||
export interface StrokeProps {
|
||||
@@ -192,10 +192,6 @@ export interface RectProps extends CommonPathProps {
|
||||
}
|
||||
export const Rect: React.ComponentClass<RectProps>;
|
||||
|
||||
export interface ShapeProps {
|
||||
}
|
||||
export const Shape: React.ComponentClass<ShapeProps>;
|
||||
|
||||
export interface StopProps {
|
||||
stopColor?: string,
|
||||
stopOpacity?: NumberProp,
|
||||
@@ -244,7 +240,7 @@ export const TextPath: React.ComponentClass<TextPathProps>;
|
||||
|
||||
export interface UseProps extends CommonPathProps {
|
||||
href: string,
|
||||
width?: string,
|
||||
height?: string,
|
||||
width: string,
|
||||
height: string,
|
||||
}
|
||||
export const Use: React.ComponentClass<UseProps>;
|
||||
|
||||
Reference in New Issue
Block a user