callstack / react-native-slider

React Native component exposing Slider from iOS and SeekBar from Android
MIT License
1.2k stars 269 forks source link

Invariant Violation: requireNativeComponent: "RNCSlider" was not found in the UIManager. #330

Open Karunamoorthy-tringapps opened 3 years ago

Karunamoorthy-tringapps commented 3 years ago

I am getting the following import error on only tvos devices. Invariant Violation: requireNativeComponent: "RNCSlider" was not found in the UIManager.

BartoszKlonowski commented 3 years ago

Hello @Karunamoorthy-tringapps, thanks for bringing this up! It looks like we're still based on the previous support for tvOS of react-native while it has been deprecated with version 0.62. This will need to be revisited with the usage of react-native-tvos, but I'm afraid this will definitely require more time. Please be patient, or feel free to deliver a PR if you would like to speed this issue up. Thank you!

lishaoxin123 commented 2 years ago

hi, I also encountered this problem, but this problem appears on Android

BartoszKlonowski commented 2 years ago

@lishaoxin123 are you trying this on Expo maybe?

lishaoxin123 commented 2 years ago

@lishaoxin123 are you trying this on Expo maybe?

No, I did it directly on my cell phone

rahulnainwal107 commented 2 years ago

hi, I also encountered this problem, but this problem appears on Android

+1

supriaditech commented 1 year ago

i am trying expo please solve it

rajsawhoney commented 1 year ago

Exactly I am also on expo with dev-client build. And I'm still facing the same issue

bj97301 commented 1 year ago

happens to me on expo dev client ios and android

rajsawhoney commented 1 year ago

Hello everyone! I am using slider offered by react-native-elements, a ui package and I was also facing the same issue. And I did fix it by installing "react-native-slider": "^0.11.0" and building new dev-client build. However, I am not using react-native-slider package in my project. I am not sure whether it's gonna work in your case.

bj97301 commented 1 year ago

any thoughts on this? seems to be poping up again.

objectiveSee commented 1 year ago

I am also experiencing this issue in a app (iOS) running a build of the dev-client. Is there any specific plug-in configuration that needs to be done to install the Cocoapod correctly?

ab-sami commented 1 year ago

I'm facing this issue on "@react-native-community/slider": "^4.4.2", from today. Any probable fixes?

SabrioBiblio commented 1 year ago

Hello, I somehow solved this problem. I had no idea how. But there are some points that I did. (Android)

I tried all the options, googled anything, but I didn’t change anything in the android folder

Here are the steps I followed just by poking at anything

  1. node_modules removed (3-5 times, i don't know) and npm install
  2. I use android studio (Girafe) and then I clicked on "Sync project with Gradle Files".
  3. in android studio Build -> Clean project -> (wait) | Build -> Rebuild project

Several times I tried to clear the build and run it, tried to clear the cache with npm start -- --reset-cache****

And that's what helped me, I just restarted the computer and the problems were resolved by itself. Basically, such problems with the UI manager were solved by rebooting

PS. And yes, in some cases, my emulator just hung after npm start and nothing happened, so I just deleted this device from android studio and created a new one

lokeshphilips commented 4 months ago

Hi , I am facing below issue while trying to integrating into React Native application

Invariant Violation: View config getter callback for componentRNCSlidermust be a function (receivedundefined).

giladgray commented 3 months ago

I am also experiencing this with @react-native-community/slider@4.5.2 and Expo 50 on Android and iPhone devices. This seems to completely block usage of this package and feels like a high-priority issue with this package. Are there any known workarounds?

periakteon commented 2 months ago

same with expo 51 and @react-native-community/slider@4.5.2

za-rakib commented 1 month ago

rm -rf node_modules
npm install
npm start --reset-cache
cd ios && pod install

kakunasa commented 4 days ago

Error Encountered: ERROR Invariant Violation: requireNativeComponent: “RNCSlider” was not found in the UIManager. Development Environment:

Steps to Resolve: rm -rf node_modules npm install npx expo prebuild --platform android --clean npx expo run:android