-
Notifications
You must be signed in to change notification settings - Fork 275
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
Native Component for "RNCSlider" does not exist. #41
Comments
I got the same |
+1 I have the same error. |
+1 |
1 similar comment
+1 |
You need to link and it works : |
Yeah, exactly what @LG1710 said - you need to run |
I don't think this should be closed - this did not fix it for me, I am still getting the same error |
Same for me. |
I think I am also suffering from this problem. @michalchudziak could you look again? This is the commit from running
I am okay on Android, but on Ios I get
The manual installation method has me drag something from |
Having the same issue -- link command worked fine but for some reason I'm getting that same error. I don't think the RN team should be alerting people to switch over to this package until this is resolved. Lots of man hours wasted collectively speaking. |
Do |
@aidanw what if users do not want to eject their application? This seems like a more fundamental issue with a native component that should not be breaking. |
I have never used any of the not ejected stuff so I am not sure of the limitations... but yeah this pretty fundamental ui element being funky is bad news. |
|
|
Running the following worked for me:
That being said your |
Same error here |
@muhammadwfa Did |
Actually this was not an issue |
How did you end up solving it? @muhammadwfa |
by linking
|
I had the same issue and for me this was due to the fact that I had overridden the I don't know the iOS variant for this but the idea is that you have to ensure your native code advertises all the native packages you need, including your dependencies. |
I'm seeing the same issue. My instance of Slider is imported like this:
Anyone else still seeing this issue? |
In my case it didn't work after re-linking.
|
Does this work without ejecting Expo? |
I've cleared cache, linked, ejected etc. No luck. I've seen bits online that it won't work with Expo but possibly i've read that wrong. Not explicit in the readme so assume that isn't the case. |
Readme doesn't contain that ... |
Same. Not working. |
Depending on your RN version you should either be on 1.X.X or 2.X.X. |
|
This works for me to fix the same issue when running on android simulator! |
I think its due to your React Native being of version < 0.6 but your Slider is version > 2.0. Either upgrade your React Native version or downgrade Slider to 1.x.x |
this worked for me |
had the same issue, running react-native link, and pod install helped me as well. The README should be updated.
|
I solved it with the next steps:
If you see this error again, so restart your server and just try to run one more time. P.S. Remember, that default version of the component is 2, which supports react-native >0.60. If you have |
It is solved after running link. |
* Update slider.md See https://forums.expo.io/t/react-native-slider/25681. Using the community version (with SDK 0.34) results in the error described in forum post and callstack/react-native-slider#41 * Update slider.md * Update slider.md
This works for me on RN 0.59
|
Just had the same issue after migrating to the community slider component. Apparently after adding the package in iOS you also need to run pod install. |
Do it like this! 1- then expo start --clear hopefully work for someone. |
This worked for me. |
FYR: I got same issue. I challenged all the above solutions. But I couldn't. [expo issue] expo/expo#4300 |
Please accept my knees. |
@ashish-padakannaya this worked, thanks man... |
you saved my day bro |
@techtunix Whats the point of adding and linking the |
Why you didn't write it in the readme? Just add rn link etc... |
yarn add @react-native-community/slider
npx pod-install
npx react-native run-ios Note the last line there. That's what I'd been missing. Rebuild your app after adding native dependencies. |
I think it's worth mentioning that one must build the app after linking the packages |
Can you reopen this please? I also have the same problem with RN 0.63. Shouldn't "autolinking" work without any other intervention from us? Is this the problem? The "autolinking" fails somehow? Thanks! |
Restarting my Expo process worked for me (Using Expo 4.1.6) |
I already installed it and import it but this error shows
"Native Component for "RNCSlider" does not exist."
The text was updated successfully, but these errors were encountered: