Giter Site home page Giter Site logo

Comments (3)

sacmii avatar sacmii commented on August 17, 2024

React-native: 0.70.1 React-native-reanimated: 2.12.0

onComplete doesnt work at all (onChange works as expected) on 3.1.0 but on 2.0.2 works as expected. No errors/warnings are shown on. Changing properties during runtime also doesnt work.

can u provide steps for Changing properties during runtime also doesnt work.

from rn-vertical-slider.

CosminPerRam avatar CosminPerRam commented on August 17, 2024

Given that we have the following component:

import VerticalSlider from 'rn-vertical-slider';

const MySlider = ({disabled}) => {
  const [value, setValue] = useState(0);
  return (
    <VerticalSlider
      value={value}
      disabled={disabled}
      onChange={(value) => setValue(value)}
      height={200}
      width={40}
      step={1}
      min={0}
      max={100}
      borderRadius={5}
      minimumTrackTintColor="#2979FF"
      maximumTrackTintColor="#D1D1D6"
      showBallIndicator
      ballIndicatorColor="#2979FF"
      ballIndicatorTextColor="#fff"
      ballIndicatorWidth={80}
      ballIndicatorHeight={40}
    />
  );
}

Where we use it, as, for example:

const [disableRange, setDisableRange] = useState(false);
//...
<MySlider disabled={disableRange}>
//...
//somewhere we change the state with setDisableRange

It doesn't work.
As I said, onComplete is also broken.
Am I doing something wrong? Is this not working only for me? How could I reliably debug this?

from rn-vertical-slider.

evanstern avatar evanstern commented on August 17, 2024

Can confirm. This is happening for me as well. onComplete never triggers:

      <VerticalSlider
        value={value}
        step={1}
        min={0}
        max={100}
        height={200}
        width={10}
        onChange={onChange}
        onComplete={onComplete}
        ballIndicatorColor="white"
        ballIndicatorWidth={25}
        ballIndicatorHeight={25}
        showBallIndicator
        ballIndicatorPosition={-7}
        minimumTrackTintColor="transparent"
        maximumTrackTintColor="transparent"
        ballIndicatorTextColor="transparent"
      />

from rn-vertical-slider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.