mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Animated: add debug logging for batched animation operation
Summary: Just adding a simple log. Changelog: [Internal] Reviewed By: javache Differential Revision: D36565733 fbshipit-source-id: e57e6bed500ca01165ffe8eccfbedc7ce969fb01
This commit is contained in:
committed by
Facebook GitHub Bot
parent
16ce685708
commit
d304ca8da6
@@ -1033,11 +1033,16 @@ public class NativeAnimatedModule extends NativeAnimatedModuleSpec
|
||||
*/
|
||||
@Override
|
||||
public void queueAndExecuteBatchedOperations(final ReadableArray opsAndArgs) {
|
||||
final int opBufferSize = opsAndArgs.size();
|
||||
|
||||
if (ANIMATED_MODULE_DEBUG) {
|
||||
FLog.e(NAME, "queueAndExecuteBatchedOperations: opBufferSize: " + opBufferSize);
|
||||
}
|
||||
|
||||
// This block of code is unfortunate and should be refactored - we just want to
|
||||
// extract the ViewTags in the ReadableArray to mark animations on views as being enabled.
|
||||
// We only do this for initializing animations on views - disabling animations on views
|
||||
// happens later, when the disconnect/stop operations are actually executed.
|
||||
final int opBufferSize = opsAndArgs.size();
|
||||
for (int i = 0; i < opBufferSize; ) {
|
||||
BatchExecutionOpCodes command = BatchExecutionOpCodes.fromId(opsAndArgs.getInt(i++));
|
||||
switch (command) {
|
||||
|
||||
Reference in New Issue
Block a user