Skip to content

Instantly share code, notes, and snippets.

@JFSene
Created July 5, 2017 14:11
Show Gist options
  • Save JFSene/4947cfbc1afd8690ef4e14320758077d to your computer and use it in GitHub Desktop.
Save JFSene/4947cfbc1afd8690ef4e14320758077d to your computer and use it in GitHub Desktop.
React-Native CSS like style
Valid keys: [
"display",
"width",
"height",
"top",
"left",
"right",
"bottom",
"minWidth",
"maxWidth",
"minHeight",
"maxHeight",
"margin",
"marginVertical",
"marginHorizontal",
"marginTop",
"marginBottom",
"marginLeft",
"marginRight",
"padding",
"paddingVertical",
"paddingHorizontal",
"paddingTop",
"paddingBottom",
"paddingLeft",
"paddingRight",
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"position",
"flexDirection",
"flexWrap",
"justifyContent",
"alignItems",
"alignSelf",
"alignContent",
"overflow",
"flex",
"flexGrow",
"flexShrink",
"flexBasis",
"aspectRatio",
"zIndex",
"direction",
"shadowColor",
"shadowOffset",
"shadowOpacity",
"shadowRadius",
"transform",
"transformMatrix",
"decomposedMatrix",
"scaleX",
"scaleY",
"rotation",
"translateX",
"translateY",
"resizeMode",
"backfaceVisibility",
"backgroundColor",
"borderColor",
"borderRadius",
"tintColor",
"opacity",
"overlayColor",
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomLeftRadius",
"borderBottomRightRadius"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment