mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Migrate RCTAxialGradientView to JS codegen
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
This commit is contained in:
committed by
Facebook Github Bot
parent
71d7d6883c
commit
a5aaca7d4f
+1
-2
@@ -47,8 +47,7 @@ function getJavaValueForProp(prop: PropTypeShape, imports): string {
|
||||
case 'Int32TypeAnnotation':
|
||||
return 'int value';
|
||||
case 'FloatTypeAnnotation':
|
||||
addNullable(imports);
|
||||
return 'Float value';
|
||||
return 'float value';
|
||||
case 'NativePrimitiveTypeAnnotation':
|
||||
switch (typeAnnotation.name) {
|
||||
case 'ColorPrimitive':
|
||||
|
||||
Reference in New Issue
Block a user