lucassaid / react-native-cool-speedometer

Cool speedometer for React Native
27 stars 20 forks source link

Invariant Violation: Tried to register two views with same name RNSVGSvgView #1

Closed z4gunn closed 2 years ago

z4gunn commented 3 years ago

I already have react-native-svg installed as a library dependency, but after installing react-native-cool-speedometer I am receiving following error.

image

lucassaid commented 3 years ago

Hi, if you installed react-native-svg using npm, you can try uninstalling it and installing again with expo

npm uninstall react-native-svg
expo install react-native-svg
dotsenko commented 2 years ago

Please update dependencies "react-native-svg": "12.1.0" to "react-native-svg": "^12.1.0"

lucassaid commented 2 years ago

Thanks for this, I'll upgrade the dependency in the next release

BhuwaneshSisodia commented 2 years ago

Hi, if you installed react-native-svg using npm, you can try uninstalling it and installing again with expo

npm uninstall react-native-svg
expo install react-native-svg

Facing same error, But don't wanna use Expo CLI, whats the another solution for this error?

lucassaid commented 2 years ago

@BhuwaneshSisodia I just released a new version with react-native-svg updated to ^12.1.0. Please update react-native-cool-speedometer and let me know if it works, thanks

BhuwaneshSisodia commented 2 years ago

Thank You! It works now.

zoobibackups commented 1 year ago

same issue again. i have downgrade thereact-native-svg to 12.1.0 but still have same issue. here is my package.json file

"dependencies": {
    "@notifee/react-native": "^7.4.0",
    "@react-native-admob/admob": "^2.0.1",
    "@react-native-async-storage/async-storage": "^1.15.13",
    "@react-native-community/art": "^1.2.0",
    "@react-native-community/blur": "^4.3.0",
    "@react-native-community/clipboard": "^1.5.1",
    "@react-native-community/geolocation": "^2.0.2",
    "@react-native-community/masked-view": "^0.1.11",
    "@react-native-community/netinfo": "^9.3.7",
    "@react-native-community/slider": "^4.4.2",
    "@react-native-mapbox-gl/maps": "^8.6.0-beta.0",
    "@react-navigation/drawer": "^6.1.8",
    "@react-navigation/native": "^6.0.6",
    "@react-navigation/native-stack": "^6.2.5",
    "@reduxjs/toolkit": "^1.9.2",
    "deprecated-react-native-prop-types": "^4.0.0",
    "google-libphonenumber": "^3.2.25",
    "libphonenumber-js": "^1.9.39",
    "moment": "^2.29.4",
    "patch-package": "^6.5.0",
    "postinstall-postinstall": "^2.1.0",
    "react": "18.1.0",
    "react-native": "0.70.6",
    "react-native-admob-native-ads": "^0.6.0",
    "react-native-android-location-enabler": "^1.2.2",
    "react-native-app-intro-slider": "^4.0.4",
    "react-native-clock-analog": "^0.0.1",
    "react-native-compass-heading": "^1.3.0",
    "react-native-contacts": "^7.0.2",
    "react-native-cool-speedometer": "^1.1.6",
    "react-native-device-country": "^1.0.3",
    "react-native-device-info": "^8.4.3",
    "react-native-fast-image": "^8.6.3",
    "react-native-geocoder": "^0.5.0",
    "react-native-geolocation-service": "^5.3.1",
    "react-native-gesture-handler": "^1.10.3",
    "react-native-largelist-v3": "^3.1.0-rc.1",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-modal": "^13.0.0",
    "react-native-permissions": "^3.1.0",
    "react-native-reanimated": "^2.2.4",
    "react-native-responsive-fontsize": "^0.5.1",
    "react-native-responsive-screen": "^1.4.2",
    "react-native-safe-area-context": "^3.3.2",
    "react-native-screens": "^3.8.0",
    "react-native-send-intent": "^1.3.0",
    "react-native-simple-toast": "^1.1.3",
    "react-native-size-matters": "^0.4.0",
    "react-native-splash-screen": "^3.2.0",
    "react-native-spring-scrollview": "3.0.2",
    "react-native-svg": "12.1.0",
    "react-native-svg-transformer": "1.0.0",
    "react-native-toast-message": "^2.1.5",
    "react-native-vector-icons": "^9.2.0",
    "react-native-vitals": "^2.0.1",
    "react-redux": "^8.0.5",
    "redux": "^4.2.1",
    "redux-logger": "^3.0.6",
    "redux-persist": "^6.0.0"
  },