Hi, community!
According to the Expo doc Slider is deprecated and we should use GitHub - callstack/react-native-slider: React Native component exposing Slider from iOS and SeekBar from Android instead.
I installed @react-native-community/slider package and imported it:
import Slider from '@react-native-community/slider';
Then I run app and see following error:
Invariant Violation: requireNativeComponent: "RNCSlider" was not found in the UIManager.
This error is located at:
in RNCSlider (at Slider.js:247)
in RCTView (at View.js:44)
in TouchableHighlight (at PlayerScreen.js:401)
I google it and found this forum post Native Component for "RNCSlider" does not exist. · Issue #41 · callstack/react-native-slider · GitHub that says, we need to link slider component:
react-native link @react-native-community/slider
- As far as I know we can’t link in Expo without detaching, am I right?
- If yes, why official doc pointing to non usable plugin?
- What is the way to use a slider with Expo?
Kind regards,
Anatolii