mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Animated MegaOp: fix removeAnimatedEventFromView call
Summary: We were calling the wrong operation from the MegaOp which caused indices to become offset. Trivial fix. Changelog: [Internal] Reviewed By: javache Differential Revision: D36482822 fbshipit-source-id: 83ebc37a8773f0277db4caff9d3e7c9c91931ddb
This commit is contained in:
committed by
Facebook GitHub Bot
parent
291f26c5c0
commit
4fc0630faa
@@ -1184,7 +1184,8 @@ public class NativeAnimatedModule extends NativeAnimatedModuleSpec
|
||||
case OP_CODE_REMOVE_ANIMATED_EVENT_FROM_VIEW:
|
||||
viewTag = opsAndArgs.getInt(i++);
|
||||
decrementInFlightAnimationsForViewTag(viewTag);
|
||||
animatedNodesManager.dropAnimatedNode(viewTag);
|
||||
animatedNodesManager.removeAnimatedEventFromView(
|
||||
viewTag, opsAndArgs.getString(i++), opsAndArgs.getInt(i++));
|
||||
break;
|
||||
case OP_CODE_ADD_LISTENER:
|
||||
case OP_CODE_REMOVE_LISTENERS:
|
||||
|
||||
Reference in New Issue
Block a user