MCPcopy Create free account
hub / github.com/react-native-maps/react-native-maps / timing

Method timing

src/AnimatedRegion.ts:155–170  ·  view source on GitHub ↗
(config: Animated.TimingAnimationConfig & Region)

Source from the content-addressed store, hash-verified

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}

Callers 3

animateMethod · 0.80
componentDidMountMethod · 0.80
AnimatedViewsClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected