* Revert "Downgrade mmkv and bump to 435 (#6742)" This reverts commit66b469bb31. * Revert "Bump Version to 1.56.0 and build to 431 (#6723)" This reverts commitfdee027b4a. * Revert "[V1] update deps (#6666)" This reverts commit8137241f12. * bump build to 436 * update snapshots
23 lines
711 B
Diff
23 lines
711 B
Diff
diff --git a/node_modules/react-native-svg/src/xml.tsx b/node_modules/react-native-svg/src/xml.tsx
|
|
index 828f104..462be2e 100644
|
|
--- a/node_modules/react-native-svg/src/xml.tsx
|
|
+++ b/node_modules/react-native-svg/src/xml.tsx
|
|
@@ -133,10 +133,17 @@ export function SvgUri(props: UriProps) {
|
|
useEffect(() => {
|
|
uri
|
|
? fetchText(uri)
|
|
- .then(setXml)
|
|
+ .then((xml) => {
|
|
+ if (xml && /xmlns="http:\/\/www.w3.org\/[0-9]*\/svg"/.test(xml)) {
|
|
+ setXml(xml);
|
|
+ return;
|
|
+ }
|
|
+ onError();
|
|
+ })
|
|
.catch(onError)
|
|
: setXml(null);
|
|
}, [onError, uri]);
|
|
+
|
|
return <SvgXml xml={xml} override={props} />;
|
|
}
|
|
|