diff --git a/ReactAndroid/src/main/jni/react/fabric/Binding.cpp b/ReactAndroid/src/main/jni/react/fabric/Binding.cpp index 3508ceeaf3c311..296a61aafe34e9 100644 --- a/ReactAndroid/src/main/jni/react/fabric/Binding.cpp +++ b/ReactAndroid/src/main/jni/react/fabric/Binding.cpp @@ -528,18 +528,12 @@ void Binding::preallocateView( } auto shadowView = ShadowView(shadowNode); - auto preallocationFunction = [this, - surfaceId, - shadowView = std::move(shadowView)] { - auto mountingManager = verifyMountingManager("Binding::preallocateView"); - if (!mountingManager) { - return; - } - - mountingManager->preallocateShadowView(surfaceId, shadowView); - }; + auto mountingManager = verifyMountingManager("Binding::preallocateView"); + if (!mountingManager) { + return; + } - preallocationFunction(); + mountingManager->preallocateShadowView(surfaceId, shadowView); } void Binding::schedulerDidDispatchCommand(