v3.0.0 #45
mobily
announced in
Announcements
v3.0.0
#45
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What's Changed
Stacksis now published in the@grappscope. So, you need to fix the imports first. Don't worry, it's a quick fix!→@mobily/stacks@grapp/stacksGeneral
The
Stackslibrary has been completely rewritten in TypeScript, so it no longer supports ReScript.React Native Unistyles is a core dependency.
The
flex gapvalues now define spaces between components (excludingColumns, see this).Components
Provider
Stacksnow uses Unistyles, which means that you can removeStacksProviderfrom the React component tree and provide configuration values to theUnistylestheme object, as described here.Box
Several new props have been added to the
Boxcomponent, includingwidth,height,gap,rowGap,columnGap,backgroundColor,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomLeftRadius,borderBottomRightRadius,borderColor,borderWidth, anddebuggable.Columns
The
defaultWidthprop is nowdefaultFlex, and thewidthprop has been changed toflex.Use
Column.fromto create a customColumncomponent.The
markAsColumnprop has been removed.FillView
FillViewhas been renamed toFloatBox.The
unsethelper has been removed, and the positioning has been fixed if you don't provide all offset values.Hidden
Experimental support for hiding elements by transforming the React component tree with the provided
Babelplugin has been added.Inline
The
spaceXandspaceYprops have been added.Rows
The
defaultHeightprop is nowdefaultFlex, and theheightprop has been changed toflex.Use
Row.fromto create a customRowcomponent.The
markAsRowprop has been removed.Tiles
The
spaceXandspaceYprops have been added, andemptyhas been renamed tofill.Hooks
useStackshas been removed, asStacksProvideris no longer needed.useCurrentBreakpointhas been removed. To get the current breakpoint name, you can useuseStylesfrom Unistyles.useSpacinghas been removed. To achieve the same result, you can useuseSpacingHelpersandmultiply.useWindowDimensionshas been removed. You can now get the screen dimensions withUnistylesRuntime.screen.This discussion was created from the release v3.0.0.
Beta Was this translation helpful? Give feedback.
All reactions