mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove ReactFeatureFlags.useViewManagerDelegates
Summary: This diff deleted the ReactFeatureFlags.useViewManagerDelegates, this has been enabled for 9+ months changelog: [internal] internal Reviewed By: JoshuaGross Differential Revision: D28265339 fbshipit-source-id: f5c97e77ca4fc72d2e2b8f891e800e362177d67a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1e39d8b829
commit
bf8037cad0
@@ -38,13 +38,6 @@ public class ReactFeatureFlags {
|
||||
*/
|
||||
public static boolean enableFabricLogs = false;
|
||||
|
||||
/**
|
||||
* Should this application use a {@link com.facebook.react.uimanager.ViewManagerDelegate} (if
|
||||
* provided) to update the view properties. If {@code false}, then the generated {@code
|
||||
* ...$$PropsSetter} class will be used instead.
|
||||
*/
|
||||
public static boolean useViewManagerDelegates = false;
|
||||
|
||||
/**
|
||||
* Should this application use a {@link com.facebook.react.uimanager.ViewManagerDelegate} (if
|
||||
* provided) to execute the view commands. If {@code false}, then {@code receiveCommand} method
|
||||
|
||||
@@ -15,7 +15,6 @@ import com.facebook.react.bridge.BaseJavaModule;
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
import com.facebook.react.bridge.ReadableArray;
|
||||
import com.facebook.react.bridge.ReadableMap;
|
||||
import com.facebook.react.config.ReactFeatureFlags;
|
||||
import com.facebook.react.touch.JSResponderHandler;
|
||||
import com.facebook.react.touch.ReactInterceptingViewGroup;
|
||||
import com.facebook.react.uimanager.annotations.ReactProp;
|
||||
@@ -41,8 +40,8 @@ public abstract class ViewManager<T extends View, C extends ReactShadowNode>
|
||||
* @param props
|
||||
*/
|
||||
public void updateProperties(@NonNull T viewToUpdate, ReactStylesDiffMap props) {
|
||||
final ViewManagerDelegate<T> delegate;
|
||||
if (ReactFeatureFlags.useViewManagerDelegates && (delegate = getDelegate()) != null) {
|
||||
final ViewManagerDelegate<T> delegate = getDelegate();
|
||||
if (delegate != null) {
|
||||
ViewManagerPropertyUpdater.updateProps(delegate, viewToUpdate, props);
|
||||
} else {
|
||||
ViewManagerPropertyUpdater.updateProps(this, viewToUpdate, props);
|
||||
|
||||
Reference in New Issue
Block a user