After upgrading to Expo 50, we started getting the following errors when building our application when using the expo-barcode-generator:
ERROR Invariant Violation: Tried to register two views with the same name RNSVGCircle, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGClipPath, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGDefs, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGEllipse, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGForeignObject, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGGroup, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGImage, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGLine, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGLinearGradient, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGMarker, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGMask, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGPath, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGPattern, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGRadialGradient, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGRect, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGSvgView, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGSvgViewAndroid, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGSymbol, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGText, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGTextPath, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGTSpan, js engine: hermes
ERROR Invariant Violation: Tried to register two views with the same name RNSVGUse, js engine: hermes
This issue only appears on native platforms, web appears to be unaffected.
I suspect this might be a version clash between the React Native SVG library Expo 50 and this package uses.
This package uses "react-native-svg": "^13.4.0" where Expo 50 recommends "react-native-svg": "14.1.0",.
Perhaps this library should update it's "react-native-svg" version, or switch to using it as a peer dependency.
After upgrading to Expo 50, we started getting the following errors when building our application when using the expo-barcode-generator:
This issue only appears on native platforms, web appears to be unaffected.
I suspect this might be a version clash between the React Native SVG library Expo 50 and this package uses.
This package uses
"react-native-svg": "^13.4.0"
where Expo 50 recommends"react-native-svg": "14.1.0",
.Perhaps this library should update it's
"react-native-svg"
version, or switch to using it as a peer dependency.