mattermost-mobile/patches/react-native-svg+15.4.0.patch
Elias Nahum 0b83938d3c
update dependencies (#8131)
* update project depdendencies

* update detox dependencies

* update fastlane

* remove silencing console
2024-08-12 09:15:49 +03:00

19 lines
707 B
Diff

diff --git a/node_modules/react-native-svg/src/xml.tsx b/node_modules/react-native-svg/src/xml.tsx
index 9e2352a..fb45382 100644
--- a/node_modules/react-native-svg/src/xml.tsx
+++ b/node_modules/react-native-svg/src/xml.tsx
@@ -138,9 +138,11 @@ export function SvgUri(props: UriProps) {
uri
? fetchText(uri)
.then((data) => {
- setXml(data);
- isError && setIsError(false);
- onLoad?.();
+ if (xml && /xmlns="http:\/\/www.w3.org\/[0-9]*\/svg"/.test(xml)) {
+ setXml(data);
+ isError && setIsError(false);
+ onLoad?.();
+ }
})
.catch((e) => {
onError(e);