callstack / react-native-slider

React Native component exposing Slider from iOS and SeekBar from Android
MIT License
1.19k stars 267 forks source link

Invariant Violation: View config getter callback for component `RNCSlider` must be a function (received `undefined`) #604

Open lokeshphilips opened 3 months ago

lokeshphilips commented 3 months ago
Invariant Violation: View config getter callback for component `RNCSlider` must be a function (received `undefined`)

I am facing below issue while trying to integrating into React Native application

Invariant Violation: View config getter callback for componentRNCSlidermust be a function (receivedundefined).

Originally posted by @lokeshphilips in https://github.com/callstack/react-native-slider/issues/330#issuecomment-2149346430

Joe-Altrai commented 1 month ago

How to solve this? im also facing the same issue in new expo project

za-rakib commented 3 weeks ago

rm -rf node_modules # Delete node_modules npm install # Reinstall dependencies npm start --reset-cache # Clear Metro cache and start the server cd ios && pod install # Reinstall CocoaPods dependencies

Joe-Altrai commented 3 weeks ago

Thanks, but i figured that already. It was my mistake that idk that when installing a native module in expo needs a development build, so after building a development build has resolved that.