Stacks v4.0.0 (with Unistyles v3) #53
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR brings a major update to Stacks. It's using
Unistyles v3now, and you'll need at leastReact Native v0.76.0to get started. SinceUnistyles v3is still in beta, this new version ofStacksis also in beta for the time being. Once Unistyles gets to a stable version, I'll release a stable version of Stacks too.To grab the beta version of Stacks, just run the following command:
What's New
BoxNew props have been added:
outlineColoroutlineStyleoutlineWidthoutlineOffsetpointerEventsopacityoverflowThe
outline*props are available only if you useRN v0.77.0at least.Columns/ColumnI've cleaned things up by removing a bunch of props from both components. Here's what's gone:
backgroundColorborderRadiusborderTopLeftRadiusborderTopRightRadiusborderBottomLeftRadiusborderBottomRightRadiusborderWidthborderTopWidthborderRightWidthborderBottomWidthborderLeftWidthborderColorAlso, the following new props are not included:
outlineColoroutlineStyleoutlineWidthoutlineOffsetSo instead of using your components like this:
You should switch to this format:
I'm super excited about this release, a new version of Unistyles looks fantastic! If you run into any bugs or have ideas on how we can make things better, I'd love to hear from you.