Fix Gemstone Profile Swiping Animations by fixing Animated.Value for Animated.event

Reviewed By: RSNara

Differential Revision: D32037021

fbshipit-source-id: 41da68706e6c752bf480d11112f70692f7234756
This commit is contained in:
Paige Sun 2021-11-02 17:30:33 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 8fef52035b
Коммит 6fd3bc2175
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -162,6 +162,10 @@ RCT_EXPORT_METHOD(setAnimatedNodeValue:(double)nodeTag
[self addOperationBlock:^(RCTNativeAnimatedNodesManager *nodesManager) {
[nodesManager setAnimatedNodeValue:[NSNumber numberWithDouble:nodeTag] value:[NSNumber numberWithDouble:value]];
}];
// In Bridge, flushing of native animations is done from RCTCxxBridge batchDidComplete().
// Since RCTCxxBridge doesn't exist in Bridgeless, and components are not remounted in Fabric for native animations,
// flush here for changes in Animated.Value for Animated.event.
[self flushOperationQueues];
}
RCT_EXPORT_METHOD(setAnimatedNodeOffset:(double)nodeTag