mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-27 04:32:57 +00:00
chore: run prettier and lint (#2087)
This commit is contained in:
+5
-2
@@ -142,12 +142,15 @@ export function SvgUri(props: UriProps) {
|
||||
onLoad?.();
|
||||
})
|
||||
.catch((e) => {
|
||||
onError(e)
|
||||
onError(e);
|
||||
setIsError(true);
|
||||
})
|
||||
: setXml(null);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [onError, uri, onLoad]);
|
||||
if (isError) return fallback ?? null;
|
||||
if (isError) {
|
||||
return fallback ?? null;
|
||||
}
|
||||
return <SvgXml xml={xml} override={props} fallback={fallback} />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user