(toValue = 0)
| 444 | } |
| 445 | |
| 446 | function _animate(toValue = 0) { |
| 447 | springAnimationConfig.toValue = toValue; |
| 448 | return new Promise(resolve => { |
| 449 | Animated.spring(animatedValue.current, springAnimationConfig).start( |
| 450 | resolve, |
| 451 | ); |
| 452 | }); |
| 453 | } |
| 454 | |
| 455 | function _getSourceForType(type: string | undefined) { |
| 456 | switch (type) { |