splitBoxModelStyle
export
function
splitBoxModelStyle
(
 Â
style
:
ReturnType
<
TNodeShape
<
TNodeType
>
[
"getNativeStyles"
]
>
)
:
{
 Â
boxModelStyle
:
Pick
<
NativeBlockStyles
|
NativeTextStyles
,
"alignContent"
   Â
|
"alignItems"
   Â
|
"alignSelf"
   Â
|
"aspectRatio"
   Â
|
"backfaceVisibility"
   Â
|
"backgroundColor"
   Â
|
"borderBottomColor"
   Â
|
"borderBottomLeftRadius"
   Â
|
"borderBottomRightRadius"
   Â
|
"borderBottomWidth"
   Â
|
"borderLeftColor"
   Â
|
"borderLeftWidth"
   Â
|
"borderRightColor"
   Â
|
"borderRightWidth"
   Â
|
"borderTopColor"
   Â
|
"borderTopLeftRadius"
   Â
|
"borderTopRightRadius"
   Â
|
"borderTopWidth"
   Â
|
"bottom"
   Â
|
"direction"
   Â
|
"display"
   Â
|
"flexBasis"
   Â
|
"flexDirection"
   Â
|
"flexGrow"
   Â
|
"flexShrink"
   Â
|
"flexWrap"
   Â
|
"height"
   Â
|
"justifyContent"
   Â
|
"left"
   Â
|
"marginBottom"
   Â
|
"marginLeft"
   Â
|
"marginRight"
   Â
|
"marginTop"
   Â
|
"maxHeight"
   Â
|
"maxWidth"
   Â
|
"minHeight"
   Â
|
"minWidth"
   Â
|
"opacity"
   Â
|
"paddingBottom"
   Â
|
"paddingLeft"
   Â
|
"paddingRight"
   Â
|
"paddingTop"
   Â
|
"right"
   Â
|
"top"
   Â
|
"transform"
   Â
|
"width"
   Â
|
"zIndex"
   Â
|
"borderStyle"
>
;
 Â
otherStyle
:
Omit
<
NativeBlockStyles
|
NativeTextStyles
,
string
>
;
}
A utility to separate box model styles and other styles. Useful when one wants to wrap a text element in a view to benefit from padding vertical, borders... etc.
#
Parametersstyle
#
required