Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Stacks v4.0.0 (with Unistyles v3)#53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
mobily wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromfeature/v4-unistyles-3

Conversation

mobily
Copy link
Collaborator

This PR brings a major update to Stacks. It's usingUnistyles 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:

npm install @grapp/stacks@beta
yarn add @grapp/stacks@beta
pnpm add @grapp/stacks@beta
bun add @grapp/stacks@beta

What's New

Box

New props have been added:

  • outlineColor
  • outlineStyle
  • outlineWidth
  • outlineOffset
  • pointerEvents
  • opacity
  • overflow

Theoutline* 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:

<Columnsspace={2}backgroundColor="red"><Columnflex="1/2"borderWidth={1}borderColor="yellow"></Column><Columnflex="1/2"></Column></Columns>

You should switch to this format:

<BoxbackgroundColor="red"><Columnsspace={2}><Columnflex="1/2"><BoxborderWidth={1}borderColor="yellow"></Box></Column><Columnflex="1/2"></Column></Columns></Box>

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.

MohammedFaragallah, angrypie, marcel-happyfloat, bayasdev, Code-Victor, ananjaemin, migueldaipre, and maksim-romanov reacted with heart emoji
@Code-Victor
Copy link

Guyyssss, please I can't wait for this to get released!

maksim-romanov reacted with thumbs up emoji

@marcel-happyfloat
Copy link

@Code-Victor you can already use it by installing the beta, as stated in the post,npm install @grapp/stacks@beta

@ananjaemin
Copy link

https://github.com/jpudysz/react-native-unistyles/releases/tag/v3.0.0
let's go..!

Code-Victor, ievolution, and maksim-romanov reacted with rocket emoji

@ananjaemin
Copy link

😭

@kitolog
Copy link

Hello, thanks for the awesome library! Is there a roadmap to plan the migration to support the new unistyles?

@erickreutz
Copy link

@mobily LTGM?

@maksim-romanov
Copy link

🚀 Excited to see this update! Been waiting for the new Unistyles support — really looking forward to trying it out. Curious though, why such a long wait for this release? Thanks for pushing it forward 🙌

ievolution and ananjaemin reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

7 participants
@mobily@Code-Victor@marcel-happyfloat@ananjaemin@kitolog@erickreutz@maksim-romanov

[8]ページ先頭

©2009-2025 Movatter.jp