-
Notifications
You must be signed in to change notification settings - Fork 292
Closed
Labels
bug reportSomething isn't workingSomething isn't working
Description
Environment
- react-native info output:
info Fetching system and libraries information...
System:
OS: macOS 13.1
CPU: (8) arm64 Apple M2
Memory: 136.67 MB / 24.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 20.1.0 - /opt/homebrew/bin/node
Yarn: 1.22.18 - /opt/homebrew/bin/yarn
npm: 9.6.4 - /opt/homebrew/bin/npm
Watchman: 2023.05.15.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /Users/jonathan/.rvm/rubies/ruby-3.0.0/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.9971841
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 18.0.2.1 - /opt/homebrew/opt/openjdk/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.8 => 0.71.8
react-native-macos: ^0.71.0-0 => 0.71.8
npmGlobalPackages:
*react-native*: Not Found
-
are you using the new architecture?
Not sure, if that's Fabric then I believe that is the default in the latest versions. -
which version of react & react-native are you using?
React 18.2.0 & React Native 0.71.8
Description
When adding a <Slider> component to any page and running react-native run-macos results in the error below:
Error Log from Metro
LOG Running "RNCSliderDemo" with {"rootTag":1,"initialProps":{}}
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 App)
in RCTView (created by View)
in View (created by App)
in RCTScrollContentView (at ScrollView.js:1743)
in RCTScrollView (created by ScrollView)
in ScrollView (created by ScrollView)
in ScrollView (created by App)
in RCTView (created by View)
in View (created by App)
in App
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in RNCSliderDemo(RootComponent)
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 App)
in RCTView (created by View)
in View (created by App)
in RCTScrollContentView (at ScrollView.js:1743)
in RCTScrollView (created by ScrollView)
in ScrollView (created by ScrollView)
in ScrollView (created by App)
in RCTView (created by View)
in View (created by App)
in App
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in RNCSliderDemo(RootComponent)
Reproducible Demo
I've created a repository that has reproduced this issue, though you must run it on a Mac for obvious reasons. https://github.com/keenan-v1/react-native-macos-rnc-slider-demo
The steps I took to create the repository:
npx react-native init RNCSliderDemo --template react-nativecd RNCSliderDemoyarn install(just in case!)yarn add @react-native-community/slidernpx react-native-macos-init- Modified
App.tsxto have a slider. yarn react-native run-macos
Thank you.
Metadata
Metadata
Assignees
Labels
bug reportSomething isn't workingSomething isn't working
