mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-16 12:12:20 +08:00
Implement {min,max}{Width,Height} in ReactAndroid
Reviewed By: astreet Differential Revision: D3424294 fbshipit-source-id: 03ae663927600bff025cd953a9b6b221c8dd9f23
This commit is contained in:
committed by
Facebook Github Bot 1
parent
78b892906b
commit
1579a72ca6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user