(config: Animated.TimingAnimationConfig & Region)
| 153 | } |
| 154 | |
| 155 | timing(config: Animated.TimingAnimationConfig & Region) { |
| 156 | const animations = []; |
| 157 | for (const type of configTypes) { |
| 158 | if (config.hasOwnProperty(type)) { |
| 159 | animations.push( |
| 160 | Animated.timing(this[type], { |
| 161 | ...config, |
| 162 | toValue: config[type], |
| 163 | // may help to eliminate some dev warnings and perf issues |
| 164 | useNativeDriver: !!config?.useNativeDriver, |
| 165 | }), |
| 166 | ); |
| 167 | } |
| 168 | } |
| 169 | return Animated.parallel(animations); |
| 170 | } |
| 171 | } |
no outgoing calls
no test coverage detected