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 v3
now, and you'll need at leastReact Native v0.76.0
to get started. SinceUnistyles v3
is still in beta, this new version ofStacks
is 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
Box
New props have been added:
outlineColor
outlineStyle
outlineWidth
outlineOffset
pointerEvents
opacity
overflow
The
outline*
props are available only if you useRN v0.77.0
at least.Columns
/Column
I've cleaned things up by removing a bunch of props from both components. Here's what's gone:
backgroundColor
borderRadius
borderTopLeftRadius
borderTopRightRadius
borderBottomLeftRadius
borderBottomRightRadius
borderWidth
borderTopWidth
borderRightWidth
borderBottomWidth
borderLeftWidth
borderColor
Also, the following new props are not included:
outlineColor
outlineStyle
outlineWidth
outlineOffset
So 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.