-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tried to register two views with the same name RNCViewPager #1056
Comments
You ever got a solution for this? |
hello. i find the solution for this.i guess you maybe use @ant-design/react-native 3.2.0 or use some third module it contians react-native-viewpager.but this version is different.And then can not compatibled.like @ant-design/react-native 3.2.0 it use react-native-viewpager version is 1.1.7 and this module use version is 2.0.1.so get the error Tried to register two views with the same name RNCViewPager.if you use @ant-design/react-native also you can use the 3.1.15 version or you can try the method they provided. |
Have you found the solution |
this error reason is two module use different @react-native-community/viewpager version. you should make the two module use the same. this code can upgrade the version to 2.xx if another is use this version. if not work. i guess maybe the another module use the @react-native-community/viewpager version is 3.xx you should use this module version which use version is 2.xx . |
Same problem |
@xgAnd 1.Add the following to package.json in the root directory of my project:
2.perform 3.perform The following error appears
|
And my node_modules project/node_modules/@reaction-native-community/viewpager version number has changed to 2.0.2 |
in your project root file. if not low than 0.60 you can try close all and delete node_modules and yarn. try to download again. |
Thanks all! Downgrading to |
help me so much.. Thanks |
I also had this problem but could only solve it by removing I was using it for an image carousel in part of the app, so I styled this scrollable tab view plugin to also be usable for the carousel. Pretty strange problem but happy I found this workaround. |
Any solutions? |
@zmnv the only thing that worked for me was removing one of the conflicting deps. Try open the If all your deps implement the same version of |
@nabilfreeman yeah, but change something inside So, now I just use in
until waiting new release |
Can someone elaborate why is the |
The same issue. Does someone know how to solve this? |
Hey guys! |
it's work for me. |
check youre viewpager versions inside scrollable-tab-view and reinstall viewpager with same version inside scrollable-tab-view |
I tried using "resolutions" but didn't work for me then, I clone the repo and modified the ViewManger Name and it worked fine for me you may try it. past following, to roo dir in package.json and run command |
[y ] I have searched existing issues
[y ] I am using the latest scrollable tab view version
I upgrade myProject react-native version from 0.58.6 to 0.61.3 get the error
Tried to register two views with the same name RNCViewPager
Steps to Reproduce
according to the react-native method to upgrade.And use this module in the latest version
"react-native-scrollable-tab-view": "^1.0.0",when I start my service use npm start I get the error Tried to register two views with the same name RNCViewPager I guese the error is from this.if you have some ideas please tell me,thanks a lot.
Expected Behavior
Write what you thought would happen.
hode run without error.
The text was updated successfully, but these errors were encountered: