mattermost-mobile/patches/react-native-svg+14.0.0.patch
Elias Nahum edef4ec4a3
Update libraries and dependencies (#7678)
* update js dependencies

* update react-native libraries

* update watermelonDB

* update RN to 0.72.7

* update fastlane

* fix remove_markdown/at_mention import

* update mattermost libraries

* update fastlane deps

* remove haptic-feedback patch

* update okhttp to 4.12.0 and patch netinfo to accurately identify VPN connections

* create ImaegStyles intersection type
2023-11-25 07:46:13 +08: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 385dd09..2b78d6e 100644
--- a/node_modules/react-native-svg/src/xml.tsx
+++ b/node_modules/react-native-svg/src/xml.tsx
@@ -137,9 +137,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);