Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. this.animations = {
  2. rotate: qwe.map(() => {
  3. return new Animated.Value(0);
  4. }),
  5. scale: qwe.map(() => {
  6. return new Animated.Value(0);
  7. }),
  8. value: qwe.map(() => {
  9. return 0;
  10. })
  11. };
  12.  
  13. this.animations.rotate.map((animation, index) => {
  14. animation.addListener(({ value }) => (this.animations.value[index] = value));
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement