mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-24 11:44:39 +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 {
|
||||
opacity?: NumberProp,
|
||||
width?: NumberProp,
|
||||
height?: NumberProp,
|
||||
width: NumberProp,
|
||||
height: NumberProp,
|
||||
viewBox?: string,
|
||||
preserveAspectRatio?: string,
|
||||
}
|
||||
@@ -215,12 +215,12 @@ export interface SvgProps extends ReactNative.ViewProperties {
|
||||
export const Svg: React.ComponentClass<SvgProps>;
|
||||
export default Svg;
|
||||
|
||||
export interface SymbolsProps {
|
||||
export interface SymbolProps {
|
||||
id: string,
|
||||
viewBox?: string,
|
||||
preserveAspectRatio?: string,
|
||||
}
|
||||
export const Symbols: React.ComponentClass<SymbolsProps>;
|
||||
export const Symbol: React.ComponentClass<SymbolProps>;
|
||||
|
||||
export interface TSpanProps extends CommonPathProps, FontProps {
|
||||
dx?: NumberProp,
|
||||
@@ -244,7 +244,7 @@ export const TextPath: React.ComponentClass<TextPathProps>;
|
||||
|
||||
export interface UseProps extends CommonPathProps {
|
||||
href: string,
|
||||
width?: NumberProp,
|
||||
height?: NumberProp,
|
||||
width?: string,
|
||||
height?: string,
|
||||
}
|
||||
export const Use: React.ComponentClass<UseProps>;
|
||||
|
||||
Reference in New Issue
Block a user