Comments (3)
React-native: 0.70.1 React-native-reanimated: 2.12.0
onComplete
doesnt work at all (onChange
works as expected) on3.1.0
but on2.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.
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.
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)
- can publish new version in npm ? HOT 4
- There is something wrong ...when update to 1.1.0 HOT 6
- invarient violation: Module HMRClient is not a registered callable module(calling setup) HOT 6
- Slider not responding to touch interaction HOT 1
- How can i put decimals values to the slider?
- Component does not re-render with new value when parent is re-rendered. HOT 3
- ball indicator not updating HOT 6
- Invariant Violation: [263, "RCTView",{"height": "<<NaN>> "}] is not usable as a native method argument HOT 2
- importing results in an error?
- BallIndicator result with float
- Feature request: support tap events, and not just gestures
- Feature: Support multi-touch for two sliders to be used at the same time on Android
- Not working in scrollview
- crash when using reaniamted v3 HOT 2
- When slider got re-rendered with a new onChange prop, it won't be triggered HOT 2
- Cannot read property 'prototype' of undefined
- Docs are wrong and latest version breaks usage inside a scrollview HOT 1
- How to change value use javascript code
- onComplete never gets triggered on web HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rn-vertical-slider.