mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Delete ReactFeatureFlags.useViewManagerDelegatesForCommands
Summary: This diff deletes ReactFeatureFlags.useViewManagerDelegatesForCommands, this has been enabled in prod for 9+ months changelog: [internal] internal Reviewed By: JoshuaGross Differential Revision: D28265338 fbshipit-source-id: 2f07cb83d6ef9191f9ebea52e230490ef98d6e2d
This commit is contained in:
1 parent
0ef5beee85
commit
13169f0987
2 files changed
+2
-11
No files matched your search
+2
-4
@@ -30,7 +30,6 @@ import com.facebook.react.bridge.RetryableMountingLayerException;
|
||||
import com.facebook.react.bridge.SoftAssertions;
|
||||
import com.facebook.react.bridge.UiThreadUtil;
|
||||
import com.facebook.react.common.build.ReactBuildConfig;
|
||||
import com.facebook.react.config.ReactFeatureFlags;
|
||||
import com.facebook.react.touch.JSResponderHandler;
|
||||
import com.facebook.react.uimanager.layoutanimation.LayoutAnimationController;
|
||||
import com.facebook.react.uimanager.layoutanimation.LayoutAnimationListener;
|
||||
@@ -852,9 +851,8 @@ public class NativeViewHierarchyManager {
|
||||
+ commandId);
|
||||
}
|
||||
ViewManager viewManager = resolveViewManager(reactTag);
|
||||
ViewManagerDelegate delegate;
|
||||
if (ReactFeatureFlags.useViewManagerDelegatesForCommands
|
||||
&& (delegate = viewManager.getDelegate()) != null) {
|
||||
ViewManagerDelegate delegate = viewManager.getDelegate();
|
||||
if (delegate != null) {
|
||||
delegate.receiveCommand(view, commandId, args);
|
||||
} else {
|
||||
viewManager.receiveCommand(view, commandId, args);
|
||||
|
||||
Reference in new issue
Block a user