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
-
What's Changed
Stacks
is now published in the@grapp
scope. So, you need to fix the imports first. Don't worry, it's a quick fix!→@mobily/stacks
@grapp/stacks
General
The
Stacks
library has been completely rewritten in TypeScript, so it no longer supports ReScript.React Native Unistyles is a core dependency.
The
flex gap
values now define spaces between components (excludingColumns
, see this).Components
Provider
Stacks
now uses Unistyles, which means that you can removeStacksProvider
from the React component tree and provide configuration values to theUnistyles
theme object, as described here.Box
Several new props have been added to the
Box
component, includingwidth
,height
,gap
,rowGap
,columnGap
,backgroundColor
,borderRadius
,borderTopLeftRadius
,borderTopRightRadius
,borderBottomLeftRadius
,borderBottomRightRadius
,borderColor
,borderWidth
, anddebuggable
.Columns
The
defaultWidth
prop is nowdefaultFlex
, and thewidth
prop has been changed toflex
.Use
Column.from
to create a customColumn
component.The
markAsColumn
prop has been removed.FillView
FillView
has been renamed toFloatBox
.The
unset
helper 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
Babel
plugin has been added.Inline
The
spaceX
andspaceY
props have been added.Rows
The
defaultHeight
prop is nowdefaultFlex
, and theheight
prop has been changed toflex
.Use
Row.from
to create a customRow
component.The
markAsRow
prop has been removed.Tiles
The
spaceX
andspaceY
props have been added, andempty
has been renamed tofill
.Hooks
useStacks
has been removed, asStacksProvider
is no longer needed.useCurrentBreakpoint
has been removed. To get the current breakpoint name, you can useuseStyles
from Unistyles.useSpacing
has been removed. To achieve the same result, you can useuseSpacingHelpers
andmultiply
.useWindowDimensions
has 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