I am currently in the process of building a slider for my Android App using React Native. I am still relatively new to React Native and came across some challenges while following the documentation. The official React Native Slider component is now deprecated (https://reactnative.dev/docs/slider.html) and it's recommended to use @react-native-community/slider instead (https://github.com/react-native-community/react-native-slider/blob/master/README.md).
To incorporate this new Slider component, I utilized
npm install @react-native-community/slider --save
in my project directory.
The installation was successful and the versions in my package.json are as follows:
"dependencies": {
"@react-native-community/slider": "^3.0.3",
"react": "16.13.1",
"react-native": "0.63.0" },
In my source file, I imported the Slider component with
import Slider from '@react-native-community/slider';
. However, upon trying to implement the Slider in my code using the <Slider> ... </Slider>
tags, I encountered the following compile error:
ERROR Invariant Violation: requireNativeComponent: "RNCSlider" was not found in the UIManager.
I have been troubleshooting tirelessly but have yet to resolve this error. I am developing on Windows 10 x64 for Android platform. Any assistance would be greatly appreciated!