react-native-slider icon indicating copy to clipboard operation
react-native-slider copied to clipboard

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

Open Karunamoorthy-tringapps opened this issue 4 years ago • 18 comments
trafficstars

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

Karunamoorthy-tringapps avatar Oct 13 '21 08:10 Karunamoorthy-tringapps

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!

BartoszKlonowski avatar Oct 14 '21 19:10 BartoszKlonowski

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

lishaoxin123 avatar Dec 03 '21 10:12 lishaoxin123

@lishaoxin123 are you trying this on Expo maybe?

BartoszKlonowski avatar Apr 13 '22 23:04 BartoszKlonowski

@lishaoxin123 are you trying this on Expo maybe?

No, I did it directly on my cell phone

lishaoxin123 avatar May 10 '22 03:05 lishaoxin123

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

+1

rahulnainwal107 avatar May 11 '22 05:05 rahulnainwal107

i am trying expo please solve it

supriadiii avatar May 10 '23 03:05 supriadiii

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

rajsawhoney avatar May 15 '23 07:05 rajsawhoney

happens to me on expo dev client ios and android

bj97301 avatar May 15 '23 23:05 bj97301

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.

rajsawhoney avatar May 16 '23 01:05 rajsawhoney

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

bj97301 avatar May 18 '23 17:05 bj97301

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?

objectiveSee avatar Jun 18 '23 02:06 objectiveSee

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

ab-sami avatar Jul 13 '23 11:07 ab-sami

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

SabrioBiblio avatar Aug 28 '23 16:08 SabrioBiblio