mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-01 14:25:08 +08:00
Expose flexGrow, flexShrink, and flexBasis properties
Reviewed By: javache, astreet Differential Revision: D3785140 fbshipit-source-id: a735602c53da72e3bce69ba30936c4ed25d76b88
This commit is contained in:
committed by
Facebook Github Bot 2
parent
4178d21e96
commit
899adf5343
@@ -56,6 +56,21 @@ public class LayoutShadowNode extends ReactShadowNode {
|
||||
super.setFlex(flex);
|
||||
}
|
||||
|
||||
@ReactProp(name = ViewProps.FLEX_GROW, defaultFloat = 0f)
|
||||
public void setFlexGrow(float flexGrow) {
|
||||
super.setFlexGrow(flexGrow);
|
||||
}
|
||||
|
||||
@ReactProp(name = ViewProps.FLEX_SHRINK, defaultFloat = 0f)
|
||||
public void setFlexShrink(float flexShrink) {
|
||||
super.setFlexShrink(flexShrink);
|
||||
}
|
||||
|
||||
@ReactProp(name = ViewProps.FLEX_BASIS, defaultFloat = 0f)
|
||||
public void setFlexBasis(float flexBasis) {
|
||||
super.setFlexBasis(flexBasis);
|
||||
}
|
||||
|
||||
@ReactProp(name = ViewProps.FLEX_DIRECTION)
|
||||
public void setFlexDirection(@Nullable String flexDirection) {
|
||||
setFlexDirection(
|
||||
|
||||
Reference in New Issue
Block a user