mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-01 14:15:03 +00:00
Fix some existing type definitions:
It seems like these were already wrong? - `Symbols` -> `Symbol` - `Use` errors unless `width` and `height` are string? - `Svg` errors if `width` and `height` are not provided?
This commit is contained in:
Vendored
+6
-6
@@ -205,8 +205,8 @@ export const Stop: React.ComponentClass<StopProps>;
|
|||||||
|
|
||||||
export interface SvgProps extends ReactNative.ViewProperties {
|
export interface SvgProps extends ReactNative.ViewProperties {
|
||||||
opacity?: NumberProp,
|
opacity?: NumberProp,
|
||||||
width?: NumberProp,
|
width: NumberProp,
|
||||||
height?: NumberProp,
|
height: NumberProp,
|
||||||
viewBox?: string,
|
viewBox?: string,
|
||||||
preserveAspectRatio?: string,
|
preserveAspectRatio?: string,
|
||||||
}
|
}
|
||||||
@@ -215,12 +215,12 @@ export interface SvgProps extends ReactNative.ViewProperties {
|
|||||||
export const Svg: React.ComponentClass<SvgProps>;
|
export const Svg: React.ComponentClass<SvgProps>;
|
||||||
export default Svg;
|
export default Svg;
|
||||||
|
|
||||||
export interface SymbolsProps {
|
export interface SymbolProps {
|
||||||
id: string,
|
id: string,
|
||||||
viewBox?: string,
|
viewBox?: string,
|
||||||
preserveAspectRatio?: string,
|
preserveAspectRatio?: string,
|
||||||
}
|
}
|
||||||
export const Symbols: React.ComponentClass<SymbolsProps>;
|
export const Symbol: React.ComponentClass<SymbolProps>;
|
||||||
|
|
||||||
export interface TSpanProps extends CommonPathProps, FontProps {
|
export interface TSpanProps extends CommonPathProps, FontProps {
|
||||||
dx?: NumberProp,
|
dx?: NumberProp,
|
||||||
@@ -244,7 +244,7 @@ export const TextPath: React.ComponentClass<TextPathProps>;
|
|||||||
|
|
||||||
export interface UseProps extends CommonPathProps {
|
export interface UseProps extends CommonPathProps {
|
||||||
href: string,
|
href: string,
|
||||||
width?: NumberProp,
|
width?: string,
|
||||||
height?: NumberProp,
|
height?: string,
|
||||||
}
|
}
|
||||||
export const Use: React.ComponentClass<UseProps>;
|
export const Use: React.ComponentClass<UseProps>;
|
||||||
|
|||||||
Reference in New Issue
Block a user