mirror of
https://github.com/react/react-native.git
synced 2026-11-05 21:38:53 +08:00
Remove flex shorthand getter because it doesnt make a lot of sense
Reviewed By: gkassabli Differential Revision: D4064674 fbshipit-source-id: 69935b85042020b4e8c61a393c1be8f4d42a6674
This commit is contained in:
committed by
Facebook Github Bot
parent
dc142ad8f9
commit
ea6458b63e
@@ -358,20 +358,6 @@ public class CSSNodeDEPRECATED implements CSSNodeAPI<CSSNodeDEPRECATED> {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get this node's flex, as defined by style.
|
||||
*/
|
||||
@Override
|
||||
public float getFlex() {
|
||||
if (style.flexGrow > 0) {
|
||||
return style.flexGrow;
|
||||
} else if (style.flexShrink > 0) {
|
||||
return -style.flexShrink;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setFlex(float flex) {
|
||||
if (CSSConstants.isUndefined(flex) || flex == 0) {
|
||||
|
||||
Reference in New Issue
Block a user