Skip to content
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

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

Closed
bj97301 opened this issue May 15, 2023 · 1 comment
Labels
bug report Something isn't working duplicate This issue or pull request already exists

Comments

@bj97301
Copy link

bj97301 commented May 15, 2023

Environment

expo dev ios:

"dependencies": {
    "@react-native-community/slider": "^4.4.2",
    "buffer": "^6.0.3",
    "expo": "~48.0.9",
    "expo-application": "~5.1.1",
    "expo-constants": "~14.2.1",
    "expo-device": "~5.2.1",
    "expo-location": "~15.1.1",
    "expo-splash-screen": "~0.18.2",
    "expo-status-bar": "~1.4.4",
    "expo-system-ui": "^2.2.1",
    "expo-updates": "~0.16.4",
    "nativewind": "^2.0.11",
    "react": "18.2.0",
    "react-native": "0.71.7",
    "react-native-event-listeners": "^1.0.7",
    "react-native-slider": "^0.11.0",
    "react-native-toast-message": "^2.1.6",
    "react-redux": "^8.0.5",
    "sentry-expo": "~6.1.0"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@testing-library/jest-native": "^5.4.2",
    "@testing-library/react-native": "^12.0.1",
    "@types/jest": "^29.5.0",
    "@types/node": "^18.15.11",
    "@typescript-eslint/eslint-plugin": "^5.57.0",
    "eslint": "^8.37.0",
    "eslint-config-prettier": "^8.8.0",
    "eslint-config-react-app": "^7.0.1",
    "eslint-config-standard-with-typescript": "^34.0.1",
    "eslint-plugin-import": "^2.27.5",
    "eslint-plugin-n": "^15.7.0",
    "eslint-plugin-prefer-arrow": "^1.2.3",
    "eslint-plugin-prefer-let": "^3.0.1",
    "eslint-plugin-promise": "^6.1.1",
    "eslint-plugin-react": "^7.32.2",
    "eslint-plugin-react-native": "^4.0.0",
    "expo-dev-client": "~2.2.1",
    "expo-permissions": "^14.1.1",
    "jest": "^29.2.1",
    "jest-cli": "^29.5.0",
    "jest-expo": "^48.0.2",
    "prettier": "^2.8.7",
    "prettier-plugin-tailwindcss": "^0.2.8",
    "tailwindcss": "^3.3.2",
    "typescript": "^4.9.4"
  },
  • react-native info output:
 ERROR  Invariant Violation: requireNativeComponent: "RNCSlider" was not found in the UIManager.

This error is located at:
    in RNCSlider (at Slider.tsx:248)
    in SliderComponent (created by SettingsController)
    in RCTView (created by View)
    in View
    in NativeWind.View
    in Unknown (created by SettingsController)
    in RCTScrollContentView (created by ScrollView)
    in RCTScrollView (created by ScrollView)
    in ScrollView (created by ScrollView)
    in ScrollView (created by SettingsController)
    in RCTSafeAreaView
    in Styled
    in Unknown (created by SettingsController)
    in SettingsController (created by App)
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer (created by Modal)
    in RCTView (created by View)
    in View (created by Modal)
    in VirtualizedListContextResetter (created by Modal)
    in RCTModalHostView (created by Modal)
    in Modal (created by App)
    in RCTSafeAreaView (created by App)
    in App (created by withDevTools(App))
    in withDevTools(App)
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in main(RootComponent), js engine: hermes
 ERROR  Invariant Violation: requireNativeComponent: "RNCSlider" was not found in the UIManager.

This error is located at:
    in RNCSlider (at Slider.tsx:248)
    in SliderComponent (created by SettingsController)
    in RCTView (created by View)
    in View
    in NativeWind.View
    in Unknown (created by SettingsController)
    in RCTScrollContentView (created by ScrollView)
    in RCTScrollView (created by ScrollView)
    in ScrollView (created by ScrollView)
    in ScrollView (created by SettingsController)
    in RCTSafeAreaView
    in Styled
    in Unknown (created by SettingsController)
    in SettingsController (created by App)
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer (created by Modal)
    in RCTView (created by View)
    in View (created by Modal)
    in VirtualizedListContextResetter (created by Modal)
    in RCTModalHostView (created by Modal)
    in Modal (created by App)
    in RCTSafeAreaView (created by App)
    in App (created by withDevTools(App))
    in withDevTools(App)
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in main(RootComponent), js engine: hermes
  • are you using the new architecture?
    yes?
  • which version of react & react-native are you using?
    "react-native": "0.71.7",

Description

I get the above error when I try to return this:

<Slider
  style={{width: 200, height: 40}}
  minimumValue={0}
  maximumValue={1}
  minimumTrackTintColor="#FFFFFF"
  maximumTrackTintColor="#000000"
/> 
@bj97301 bj97301 added the bug report Something isn't working label May 15, 2023
@BartoszKlonowski BartoszKlonowski added the duplicate This issue or pull request already exists label May 16, 2023
@BartoszKlonowski
Copy link
Member

Hello @bj97301, thanks for reaching out!
Judging by the comment of yours we can agree to close this as a duplicate of #330.
Please track the progress in the original issue, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants