mdjfs / expo-image-multiple-picker

Fully customizable image picker for react native
https://npmjs.com/expo-image-multiple-picker
MIT License
21 stars 7 forks source link

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

Closed shop-fluencer closed 1 year ago

shop-fluencer commented 1 year ago

Why I get this err ?

Invariant Violation: Tried to register two views with the same name RNSVGSvgView
 ERROR  Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.
mdjfs commented 1 year ago

Hi! what version of react-native-svg are you using?

tonvlad88 commented 1 year ago

react-native-svg Hi @mdjfs, I was able to replicate this issue, here is the version "react-native-svg": "12.3.0",

mdjfs commented 1 year ago

Hmm yes, if you can give me the context when you are getting this error would be really helpful

I'm thinking about can be more than one react-native-svg installed because this project has react-native-svg as a dependency and not a peer dependency

tonvlad88 commented 1 year ago

Hmm yes, if you can give me the context when you are getting this error would be really helpful

I'm thinking about can be more than one react-native-svg installed because this project has react-native-svg as a dependency and not a peer dependency

Okay, I am not sure what context to be shown but this is what I have in my log, hope it helps.

image Screenshot_1667666562

mdjfs commented 1 year ago

Hmm yes, if you can give me the context when you are getting this error would be really helpful I'm thinking about can be more than one react-native-svg installed because this project has react-native-svg as a dependency and not a peer dependency

Okay, I am not sure what context to be shown but this is what I have in my log, hope it helps.

image Screenshot_1667666562

And that's happens when you start the project? Or when you do a specific action

tonvlad88 commented 1 year ago

Hmm yes, if you can give me the context when you are getting this error would be really helpful I'm thinking about can be more than one react-native-svg installed because this project has react-native-svg as a dependency and not a peer dependency

Okay, I am not sure what context to be shown but this is what I have in my log, hope it helps. image Screenshot_1667666562

And that's happens when you start the project? Or when you do a specific action

When I start the project.

Below is my package.json file { "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web", "eject": "expo eject", "test": "jest --watchAll" }, "jest": { "preset": "jest-expo" }, "dependencies": { "@expo/samples": "~3.0.0", "@expo/vector-icons": "^13.0.0", "@react-native-async-storage/async-storage": "~1.17.3", "@react-native-community/checkbox": "^0.5.7", "@react-native-masked-view/masked-view": "0.2.6", "@react-navigation/drawer": "^6.1.8", "@react-navigation/native": "^6.0.6", "@react-navigation/native-stack": "^6.2.5", "@react-navigation/stack": "^6.0.11", "accordion-collapse-react-native": "^0.3.2", "axios": "^0.24.0", "base-64": "^0.1.0", "d3-interpolate": "^1.3.2", "deprecated-react-native-prop-types": "^2.3.0", "expo": "^45.0.0", "expo-analytics-segment": "~11.2.1", "expo-app-loading": "~2.0.0", "expo-asset": "~8.5.0", "expo-constants": "~13.1.1", "expo-device": "~4.2.0", "expo-file-system": "~14.0.0", "expo-font": "~10.1.0", "expo-image-multiple-picker": "^4.6.1", "expo-image-picker": "~13.1.1", "expo-localization": "~13.0.0", "expo-notifications": "~0.15.4", "expo-permissions": "~13.2.0", "expo-secure-store": "~11.2.0", "expo-updates": "~0.13.4", "expo-web-browser": "~10.2.1", "i18n-js": "^3.3.0", "moment": "^2.24.0", "moment-range": "^4.0.2", "native-base": "2.15.2", "radio-buttons-react-native": "^1.0.4", "rc-swipeout": "^2.0.11", "react": "17.0.2", "react-content-loader": "^4.2.2", "react-dom": "17.0.2", "react-moment": "^0.9.2", "react-native": "0.68.2", "react-native-24h-timepicker": "^1.1.0", "react-native-action-button": "^2.8.5", "react-native-action-button-scrollview": "^2.9.2", "react-native-animated-ellipsis": "^2.0.0", "react-native-autocomplete-input": "^4.1.0", "react-native-autogrow-textinput": "^5.2.0", "react-native-bouncy-checkbox": "^2.1.0", "react-native-calendars": "^1.1268.0", "react-native-card-flip": "^1.0.4", "react-native-content-loader": "^0.1.6", "react-native-datepicker": "^1.7.2", "react-native-dropdown-picker": "^3.8.0", "react-native-elements": "^3.4.2", "react-native-extra-dimensions-android": "^1.2.5", "react-native-fast-image": "^8.3.2", "react-native-flash-message": "^0.1.13", "react-native-gesture-handler": "~2.2.1", "react-native-image-grid": "^1.0.0", "react-native-image-zoom-viewer": "^2.2.26", "react-native-keyboard-accessory": "^0.1.10", "react-native-keyboard-aware-scroll-view": "^0.9.1", "react-native-looped-carousel": "^0.1.13", "react-native-material-dropdown": "^0.11.1", "react-native-material-menu": "^1.2.0", "react-native-modal": "^11.2.0", "react-native-modal-datetime-picker": "^7.4.2", "react-native-modalize": "^2.0.13", "react-native-multiple-select": "^0.5.6", "react-native-netinfo": "^1.1.0", "react-native-pell-rich-editor": "^1.0.4", "react-native-popup-menu": "^0.15.10", "react-native-reanimated": "~2.8.0", "react-native-responsive-fontsize": "^0.2.1", "react-native-safe-area-context": "4.2.4", "react-native-screens": "~3.11.1", "react-native-scroll-into-view": "^1.0.3", "react-native-simple-radio-button": "^2.7.4", "react-native-status-bar-height": "^2.4.0", "react-native-svg": "12.3.0", "react-native-swipeout": "^2.3.6", "react-native-tab-view": "^2.15.2", "react-native-toggle-calendar": "^1.0.2", "react-native-walkthrough-tooltip": "^1.1.6", "react-native-web": "0.17.7", "react-native-webview": "11.18.1", "react-navigation": "^3.11.0", "react-redux": "^7.1.0", "redux": "^4.0.1", "redux-form": "^8.2.4", "redux-thunk": "^2.3.0", "rn-pdf-reader-js": "^4.1.1", "rn-sliding-up-panel": "^2.4.0", "sentry-expo": "^4.2.0", "xdate": "^0.8.2" }, "devDependencies": { "@types/i18n-js": "^3.8.2", "@types/xdate": "^0.8.32", "babel-preset-expo": "~9.1.0", "jest-expo": "^45.0.0", "react-native-cli": "^2.0.1" }, "private": true }

mdjfs commented 1 year ago

Hi! Please install the new version 4.6.4 and let me know if the issue persist. Thanks! @tonvlad88

tonvlad88 commented 1 year ago

Hi! Please install the new version 4.6.4 and let me know if the issue persist. Thanks! @tonvlad88

It worked! Thanks @mdjfs

mdjfs commented 1 year ago

Thanks for the feedback and helping to solve the issue!