We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 279f1be commit 04eff75Copy full SHA for 04eff75
src/utils/imageUtils.ts
@@ -4,7 +4,7 @@ import Assets from '../assets';
4
5
export function isSvgUri(source: ImageProps['source']) {
6
// @ts-expect-error
7
- return typeof source === 'object' && source?.uri?.endsWith('.svg');
+ return typeof source === 'object' && source?.uri?.endsWith?.('.svg');
8
}
9
10
export function isSvg(source: ImageProps['source']) {
0 commit comments