File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
generatedTypes/src/components/svgImage Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
/// <reference types="react" />
2
2
export interface SvgImageProps {
3
+ /**
4
+ * the asset tint
5
+ */
6
+ tintColor ?: string | null ;
3
7
data : any ;
4
8
}
5
9
declare function SvgImage ( props : SvgImageProps ) : JSX . Element | null ;
Original file line number Diff line number Diff line change @@ -6,11 +6,17 @@ const SvgCssUri = SvgPackage?.SvgCssUri;
6
6
// const SvgProps = SvgPackage?.SvgProps; TODO: not sure how (or if) we can use their props
7
7
8
8
export interface SvgImageProps {
9
+ /**
10
+ * the asset tint
11
+ */
12
+ tintColor ?: string | null ;
9
13
data : any ; // TODO: I thought this should be string | React.ReactNode but it doesn't work properly
10
14
}
11
15
12
16
function SvgImage ( props : SvgImageProps ) {
13
- const { data, ...others } = props ;
17
+ // tintColor crashes Android, so we're removing this until we properly support it.
18
+ // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
19
+ const { data, tintColor, ...others } = props ;
14
20
15
21
if ( ! SvgXml ) {
16
22
// eslint-disable-next-line max-len
You can’t perform that action at this time.
0 commit comments