StyleSheet
Skyle's StyleSheet is extremely similar to React Native's StyleSheet. In fact, it's an extension of it.
You can use both in the exact same way, but Skyle's includes more features.
As it extends React Native's StyleSheet, all standard properties and methods are available.
Methods#
create()#
An extended version of the standard create method. Creates a StyleSheet style reference from the given object or function. The function contains an object argument which contains variables from certain features.
compose()#
flatten()#
Properties#
absoluteFill#
absoluteFillObject#
@see https://reactnative.dev/docs/stylesheet#absolutefillobject
hairlineWidth#
fixedFill#
Same as absoluteFill but with position set to fixed.
flexCenter#
Sets alignItems and justifyContent to 'center'. Useful for centering children.
flexStart#
Sets alignItems and justifyContent to 'flex-start'. Useful for aligning children at the start.
flexEnd#
Sets alignItems and justifyContent to 'flex-end'. Useful for aligning children at the end.