mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a5aaca7d4f
Summary:
This diff migrates `RCTAxialGradientView` to use generated `RCTAxialGradientViewManagerDelegate` for setting its props. The following base properties have been added to `BaseViewManager`:
```
protected void setBorderRadius(T view, float borderRadius) {}
protected void setBorderBottomLeftRadius(T view, float borderRadius) {}
protected void setBorderBottomRightRadius(T view, float borderRadius) {}
protected void setBorderTopLeftRadius(T view, float borderRadius) {}
protected void setBorderTopRightRadius(T view, float borderRadius) {}
```
Reviewed By: JoshuaGross, mdvacca
Differential Revision: D16784173
fbshipit-source-id: f3971985efee2b6e0a5fb248b89c4809305e670c
45 lines
1.3 KiB
Java
45 lines
1.3 KiB
Java
package com.facebook.react.uimanager;
|
|
|
|
import android.view.ViewGroup;
|
|
import com.facebook.react.viewmanagers.FloatPropsNativeComponentViewManagerDelegate;
|
|
import com.facebook.react.viewmanagers.FloatPropsNativeComponentViewManagerInterface;
|
|
|
|
public class FloatPropsNativeComponentViewManager extends SimpleViewManager<ViewGroup>
|
|
implements FloatPropsNativeComponentViewManagerInterface<ViewGroup> {
|
|
|
|
public static final String REACT_CLASS = "FloatPropsNativeComponentView";
|
|
|
|
@Override
|
|
public String getName() {
|
|
return REACT_CLASS;
|
|
}
|
|
|
|
private void test() {
|
|
FloatPropsNativeComponentViewManagerDelegate<ViewGroup, FloatPropsNativeComponentViewManager>
|
|
delegate = new FloatPropsNativeComponentViewManagerDelegate<>(this);
|
|
}
|
|
|
|
@Override
|
|
public ViewGroup createViewInstance(ThemedReactContext context) {
|
|
throw new IllegalStateException();
|
|
}
|
|
|
|
@Override
|
|
public void setBlurRadius(ViewGroup view, float value) {}
|
|
|
|
@Override
|
|
public void setBlurRadius2(ViewGroup view, float value) {}
|
|
|
|
@Override
|
|
public void setBlurRadius3(ViewGroup view, float value) {}
|
|
|
|
@Override
|
|
public void setBlurRadius4(ViewGroup view, float value) {}
|
|
|
|
@Override
|
|
public void setBlurRadius5(ViewGroup view, float value) {}
|
|
|
|
@Override
|
|
public void setBlurRadius6(ViewGroup view, float value) {}
|
|
}
|