Implement {min,max}{Width,Height} in ReactAndroid

Reviewed By: astreet

Differential Revision: D3424294

fbshipit-source-id: 03ae663927600bff025cd953a9b6b221c8dd9f23
This commit is contained in:
Pieter De Baets
2016-06-15 09:44:35 -07:00
committed by Facebook Github Bot 1
parent 78b892906b
commit 1579a72ca6
2 changed files with 36 additions and 3 deletions

View File

@@ -56,6 +56,11 @@ public class ViewProps {
public static final String TOP = "top";
public static final String WIDTH = "width";
public static final String MIN_WIDTH = "minWidth";
public static final String MAX_WIDTH = "maxWidth";
public static final String MIN_HEIGHT = "minHeight";
public static final String MAX_HEIGHT = "maxHeight";
// Props that affect more than just layout
public static final String ENABLED = "enabled";
public static final String BACKGROUND_COLOR = "backgroundColor";
@@ -96,18 +101,26 @@ public class ViewProps {
Arrays.asList(
ALIGN_SELF,
ALIGN_ITEMS,
BOTTOM,
COLLAPSABLE,
FLEX,
FLEX_DIRECTION,
FLEX_WRAP,
HEIGHT,
JUSTIFY_CONTENT,
LEFT,
/* position */
POSITION,
RIGHT,
TOP,
BOTTOM,
LEFT,
/* dimensions */
WIDTH,
HEIGHT,
MIN_WIDTH,
MAX_WIDTH,
MIN_HEIGHT,
MAX_HEIGHT,
/* margins */
MARGIN,