mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Add animationBackend_ nullcheck before calling clearRegistry() (#56679)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56679 ## Changelog: [Internal] [Fixed] - Add animationBackend_ nullcheck before calling clearRegistry() Reviewed By: christophpurrer Differential Revision: D103759679 fbshipit-source-id: f42a19071570fea62260a7472e487108dfd64c69
This commit is contained in:
1 parent
0d20210fbe
commit
c33582bca0
1 file changed
+2
-1
@@ -210,7 +210,8 @@ void UIManager::completeSurface(
|
||||
// after we commit a specific one.
|
||||
lazyShadowTreeRevisionConsistencyManager_->updateCurrentRevision(surfaceId);
|
||||
|
||||
if (ReactNativeFeatureFlags::useSharedAnimatedBackend()) {
|
||||
if (ReactNativeFeatureFlags::useSharedAnimatedBackend() &&
|
||||
animationBackend_) {
|
||||
animationBackend_->clearRegistry(surfaceId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user