Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. onSwipeValueChange(swipeData, key) {
  2. if(swipeData.value < -140) {
  3. this.rowSwipeAnimatedValues[key].setValue(Math.abs(100));
  4. this.rowSwipeIconsShow[key].setValue(Math.abs(180));
  5. this.rowSwipeIconsHide[key].setValue(Math.abs(0));
  6. } else {
  7. this.rowSwipeAnimatedValues[key].setValue(Math.abs(0));
  8. this.rowSwipeIconsShow[key].setValue(Math.abs(0));
  9. this.rowSwipeIconsHide[key].setValue(Math.abs(100));
  10. }
  11.  
  12. this.rowSwipeIconsMove[key].setValue(Math.abs(swipeData.value));
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement