According to the Expo doc Slider is deprecated and we should use https://github.com/react-native-community/react-native-slider 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 https://github.com/react-native-community/react-native-slider/issues/41 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?