Skip to content
Permalink
Browse files

RN: Add Missing Start/End Style Types

Reviewed By: shergin

Differential Revision: D6813953

fbshipit-source-id: eed5dcaa2b6f4101f03d7fe1fca9d20c0f6a6429
  • Loading branch information...
yungsters authored and facebook-github-bot committed Jan 26, 2018
1 parent 7d1ec7a commit 3fc33bb54fc5dcf7ef696fe245addc320f85a269
Showing with 30 additions and 14 deletions.
  1. +30 −14 Libraries/StyleSheet/StyleSheetTypes.js
@@ -24,33 +24,41 @@ export type LayoutStyle<+Dimension = DimensionValue> = {
+display?: 'none' | 'flex',
+width?: Dimension,
+height?: Dimension,
+top?: Dimension,
+bottom?: Dimension,
+end?: Dimension,
+left?: Dimension,
+right?: Dimension,
+start?: Dimension,
+top?: Dimension,
+minWidth?: Dimension,
+maxWidth?: Dimension,
+minHeight?: Dimension,
+maxHeight?: Dimension,
+margin?: Dimension,
+marginVertical?: Dimension,
+marginHorizontal?: Dimension,
+marginTop?: Dimension,
+marginBottom?: Dimension,
+marginEnd?: Dimension,
+marginHorizontal?: Dimension,
+marginLeft?: Dimension,
+marginRight?: Dimension,
+marginStart?: Dimension,
+marginTop?: Dimension,
+marginVertical?: Dimension,
+padding?: Dimension,
+paddingVertical?: Dimension,
+paddingHorizontal?: Dimension,
+paddingTop?: Dimension,
+paddingBottom?: Dimension,
+paddingEnd?: Dimension,
+paddingHorizontal?: Dimension,
+paddingLeft?: Dimension,
+paddingRight?: Dimension,
+paddingStart?: Dimension,
+paddingTop?: Dimension,
+paddingVertical?: Dimension,
+borderWidth?: number,
+borderTopWidth?: number,
+borderBottomWidth?: number,
+borderEndWidth?: number,
+borderLeftWidth?: number,
+borderRightWidth?: number,
+borderStartWidth?: number,
+borderTopWidth?: number,
+position?: 'absolute' | 'relative',
+flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse',
+flexWrap?: 'wrap' | 'nowrap',
@@ -124,21 +132,29 @@ export type ViewStyle<+Dimension = DimensionValue, +Color = ColorValue> = {
+backfaceVisibility?: 'visible' | 'hidden',
+backgroundColor?: Color,
+borderColor?: Color,
+borderTopColor?: Color,
+borderRightColor?: Color,
+borderBottomColor?: Color,
+borderEndColor?: Color,
+borderLeftColor?: Color,
+borderRightColor?: Color,
+borderStartColor?: Color,
+borderTopColor?: Color,
+borderRadius?: number,
+borderTopLeftRadius?: number,
+borderTopRightRadius?: number,
+borderBottomEndRadius?: number,
+borderBottomLeftRadius?: number,
+borderBottomRightRadius?: number,
+borderBottomStartRadius?: number,
+borderTopEndRadius?: number,
+borderTopLeftRadius?: number,
+borderTopRightRadius?: number,
+borderTopStartRadius?: number,
+borderStyle?: 'solid' | 'dotted' | 'dashed',
+borderWidth?: number,
+borderTopWidth?: number,
+borderRightWidth?: number,
+borderBottomWidth?: number,
+borderEndWidth?: number,
+borderLeftWidth?: number,
+borderRightWidth?: number,
+borderStartWidth?: number,
+borderTopWidth?: number,
+opacity?: number | AnimatedNode,
+elevation?: number,
};

0 comments on commit 3fc33bb

Please sign in to comment.
You can’t perform that action at this time.