Skip to content

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

packages/react-native/Libraries/Animated/useAnimatedProps.js

-11
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,6 @@ function useAnimatedPropsLifecycle_layoutEffects(node: AnimatedProps): void {
268268
const isUnmountingRef = useRef<boolean>(false);
269269

270270
useEffect(() => {
271-
// It is ok for multiple components to call `flushQueue` because it noops
272-
// if the queue is empty. When multiple animated components are mounted at
273-
// the same time. Only first component flushes the queue and the others will noop.
274-
NativeAnimatedHelper.API.flushQueue();
275271
let drivenAnimationEndedListener: ?EventSubscription = null;
276272
if (node.__isNative) {
277273
drivenAnimationEndedListener =
@@ -326,13 +322,6 @@ function useAnimatedPropsLifecycle_insertionEffects(node: AnimatedProps): void {
326322
const prevNodeRef = useRef<?AnimatedProps>(null);
327323
const isUnmountingRef = useRef<boolean>(false);
328324

329-
useEffect(() => {
330-
// It is ok for multiple components to call `flushQueue` because it noops
331-
// if the queue is empty. When multiple animated components are mounted at
332-
// the same time. Only first component flushes the queue and the others will noop.
333-
NativeAnimatedHelper.API.flushQueue();
334-
});
335-
336325
useInsertionEffect(() => {
337326
isUnmountingRef.current = false;
338327
return () => {

0 commit comments

Comments
 (0)