Question
SvgCssUri component has a Type error when i add width or height prop.
The following code is from USAGE.
import * as React from 'react';
import { SvgCssUri } from 'react-native-svg';
export default () => (
<SvgCssUri
width="100%"
height="100%"
uri="http://thenewcode.com/assets/svg/accessibility.svg"
/>
);
Type error
“Type '{ uri: string; width: string; height: string; }' is not assignable to type '“IntrinsicAttributes & { uri: string | null; } & AdditionalProps”'.ts(2322)
Type declare from source code
export declare function SvgCssUri(props: UriProps): JSX.Element;
export declare type UriProps = {
uri: string | null;
} & AdditionalProps;
export declare type AdditionalProps = {
onError?: (error: Error) => void;
override?: Object;
};
Question
SvgCssUri component has a Type error when i add width or height prop.
The following code is from USAGE.
Type error
Type declare from source code