Skip to content

Commit

Permalink
Fix Gemstone Profile Swiping Animations by fixing Animated.Value for …
Browse files Browse the repository at this point in the history
…Animated.event

Reviewed By: RSNara

Differential Revision: D32037021

fbshipit-source-id: 41da68706e6c752bf480d11112f70692f7234756
  • Loading branch information
p-sun authored and facebook-github-bot committed Nov 3, 2021
1 parent 8fef520 commit 6fd3bc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ - (void)setSurfacePresenter:(id<RCTSurfacePresenterStub>)surfacePresenter
[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
Expand Down

0 comments on commit 6fd3bc2

Please sign in to comment.