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.
Parameters#
style#
required