Disable early return in NativeAnimatedHelper.flushQueue

Summary:
This is the same issue as https://www.internalfb.com/diff/D36298399 (55ee8ce0c4) which was reverted earlier this week.

Changelog: [Internal]

Differential Revision: D36479089

fbshipit-source-id: 2bce05882a558db0c3464ec4a2b05eee36a3048a
This commit is contained in:
Pieter De Baets 2022-05-18 10:36:03 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 763dc52387
Коммит a4690d054f
1 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -116,14 +116,6 @@ const API = {
flushQueue: function (): void {
flushQueueTimeout = null;
// Early returns before calling any APIs
if (useSingleOpBatching && singleOpQueue.length === 0) {
return;
}
if (!useSingleOpBatching && queue.length === 0) {
return;
}
if (Platform.OS === 'android') {
NativeAnimatedModule?.startOperationBatch?.();
}