alantoa / react-native-awesome-slider

🚀 An anwesome <Slider/> that supports various features haptic, lottie, animation, ballon, etc.
MIT License
228 stars 28 forks source link

Slider is not interactive, can't move it #65

Closed nikocraft closed 3 months ago

nikocraft commented 3 months ago

I followed the simple instructions on this page: https://www.npmjs.com/package/react-native-awesome-slider

I'm using expo sdk v50, I've installed everything according to instructions on above page, to quickly get going I've just added this in my app:

import { useSharedValue } from 'react-native-reanimated';
import { Slider } from 'react-native-awesome-slider';

export const Example = () => {
  const progress = useSharedValue(30);
  const min = useSharedValue(0);
  const max = useSharedValue(100);
  return (
    <Slider
      style={styles.container}
      progress={progress}
      minimumValue={min}
      maximumValue={max}
    />
  );
};

and also wrapped at relevant place with GestureHandlerRootView.

Finally the Slider would render on my device (Pixel 7 Pro) without errors, but now while it looks "awesome", it's dead, nothing happens when I try to pull it. And I have no clue if its a bug or something else.

app

nikocraft commented 3 months ago

Solved