- Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Does this code execute every frame?
So maybe we need to change it to something like this pseudocode:
const curSliderPosition = Reanimated.useValue(0); useCode(() => { // cond(neq(curSliderPosition, _sliderPosition), set(curSliderPosition, _sliderPosition)) if (curSliderPosition !== _sliderPosition) { Reanimated.set(curSliderPosition, _sliderPosition); Reanimated.timing(start it) } }); useEffect(() => { const nextSliderpostion = 000; // calcluate me Reanimated.set(_sliderPosition, nextSliderPostion); }, [_activeName]); Metadata
Metadata
Assignees
Labels
No labels