Skip to content

Native Component for "RNCSlider" does not exist. #41

Closed

Description

@NoeFabellon

I already installed it and import it but this error shows
"Native Component for "RNCSlider" does not exist."

Activity

  1. brlocky commented on Apr 22, 2019

    @brlocky

    I got the same

    https://take.ms/tSM5O

  2. princiya commented on Apr 23, 2019

    @princiya

    +1 I have the same error.

  3. nikonhub commented on Apr 23, 2019

    @nikonhub

    +1

  4. LG1710 commented on Apr 23, 2019

    @LG1710

    +1

  5. LG1710 commented on Apr 24, 2019

    @LG1710

    You need to link and it works :
    react-native link @react-native-community/slider

  6. michalchudziak commented on Apr 24, 2019

    @michalchudziak
    Collaborator

    Yeah, exactly what @LG1710 said - you need to run react-native link @react-native-community/slider. Please check https://github.com/react-native-community/react-native-slider/blob/master/README.md for further instructions.

  7. pfeghali commented on Apr 29, 2019

    @pfeghali

    I don't think this should be closed - this did not fix it for me, I am still getting the same error

  8. bakkelim commented on Apr 30, 2019

    @bakkelim

    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.
    One thing to note is that I use Expo and have not ejected the app.
    Do I have to eject the app in order to use this slider or should it work with Expo as well?

  9. aidanw commented on May 3, 2019

    @aidanw

    I think I am also suffering from this problem. @michalchudziak could you look again?

    This is the commit from running react-native link @react-native-community/slider

    https://github.com/fo-am/iCrapAppPro/commit/0ab743a8ce1d05bf41b6ed122a2da8b12e4e9a61

    I am okay on Android, but on Ios I get

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

    The manual installation method has me drag something from PushNotificationIOS into my xcode... is this really what is meant?

  10. bobber205 commented on May 6, 2019

    @bobber205

    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.

  11. aidanw commented on May 7, 2019

    @aidanw

    Do pod install in your ios folder and it works (for me).

  12. pfeghali commented on May 7, 2019

    @pfeghali

    @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.

  13. aidanw commented on May 8, 2019

    @aidanw

    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.

  14. 24 remaining items

  15. jamesmcn1 commented on Sep 4, 2019

    @jamesmcn1

    This works for me on RN 0.59

    yarn add @react-native-community/slider@1.1.4
    react-native link @react-native-community/slider
    yarn add jetifier && yarn && npx jetify
    
    yarn start --reset-cache #to reset the metro bundler
    
  16. techtunix commented on Dec 5, 2019

    @techtunix

    Do it like this!

    1- npm install @react-native-community/slider –save
    2- react-native link @react-native-community/slider
    3- include in your script file like import { Slider } from 'react-native' instead of import Slider from '@react-native-community/slider';

    then expo start --clear

    hopefully work for someone.

  17. sandunmj commented on Dec 16, 2019

    @sandunmj

    Do it like this!

    1- npm install @react-native-community/slider –save
    2- react-native link @react-native-community/slider
    3- include in your script file like import { Slider } from 'react-native' instead of import Slider from '@react-native-community/slider';

    then expo start --clear

    hopefully work for someone.

    This worked for me.

  18. sudokzt commented on Jan 21, 2020

    @sudokzt

    FYR: I got same issue. I challenged all the above solutions. But I couldn't.
    Then I found out why I couldn't.
    I use RN on Expo. Expo is not corresponded this library. So I can use previous react-native-slider.
    https://facebook.github.io/react-native/docs/slider

    [expo issue] expo/expo#4300

  19. apadak commented on Jan 23, 2020

    @apadak

    Do it like this!

    1- npm install @react-native-community/slider –save
    2- react-native link @react-native-community/slider
    3- include in your script file like import { Slider } from 'react-native' instead of import Slider from '@react-native-community/slider';

    then expo start --clear

    hopefully work for someone.

    Please accept my knees.

  20. Ahmed-Badawy commented on Feb 21, 2020

    @Ahmed-Badawy

    @ashish-padakannaya this worked, thanks man...

  21. ddilhan commented on Mar 20, 2020

    @ddilhan

    Do it like this!

    1- npm install @react-native-community/slider –save
    2- react-native link @react-native-community/slider
    3- include in your script file like import { Slider } from 'react-native' instead of import Slider from '@react-native-community/slider';

    then expo start --clear

    hopefully work for someone.

    you saved my day bro

  22. buschco commented on Jul 10, 2020

    @buschco
    Contributor

    @techtunix Whats the point of adding and linking the @react-native-community/slider at all if you use the deprecated one from react-native?

  23. Lemaro86 commented on Aug 21, 2020

    @Lemaro86

    Why you didn't write it in the readme? Just add rn link etc...
    For RN 61 not working without manually linking for me.

  24. pachun commented on Oct 23, 2020

    @pachun
    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.

  25. mstaicu commented on Jan 9, 2021

    @mstaicu

    I think it's worth mentioning that one must build the app after linking the packages

  26. afilp commented on Feb 24, 2021

    @afilp

    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?
    It appears that with manual linking it works, so I would recommend that this is considered a problem (bug?) with the "autolinking" process.

    Thanks!

  27. samdelong commented on Apr 11, 2021

    @samdelong

    Restarting my Expo process worked for me (Using Expo 4.1.6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions