[GH-ISSUE #11] Styling #7

Closed
opened 2026-05-05 11:23:00 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @quantizor on GitHub (Feb 17, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/11

Are you planning on implementing a Stylesheet API like react-native has? Curious how we could tie in something like styled-components/native to enable a full visual solution.

Originally created by @quantizor on GitHub (Feb 17, 2018). Original GitHub issue: https://github.com/kusti8/proton-native/issues/11 Are you planning on implementing a [Stylesheet API](https://facebook.github.io/react-native/docs/stylesheet.html) like `react-native` has? Curious how we could tie in something like [`styled-components/native`](https://www.styled-components.com/docs/basics#react-native) to enable a full visual solution.
Author
Owner

@dariocravero commented on GitHub (Feb 19, 2018):

It would also be interesting to leverage RNs primitives (like calling Box View) and use a flexbox model (perhaps through yoga) to make it super transparent to jump on it. Will try to explore those areas soon. Do you have any thoughts on that? Thanks for putting this together btw! It has tonnes of potential!

<!-- gh-comment-id:366627452 --> @dariocravero commented on GitHub (Feb 19, 2018): It would also be interesting to leverage RNs primitives (like calling Box View) and use a flexbox model (perhaps through yoga) to make it super transparent to jump on it. Will try to explore those areas soon. Do you have any thoughts on that? Thanks for putting this together btw! It has tonnes of potential!
Author
Owner

@kusti8 commented on GitHub (Feb 21, 2018):

I don't have any experience with yoga so I wouldn't know where to start. A stylesheet would depend on how libui will get more features. I don't know if there are enough styles to constitute a stylesheet.

<!-- gh-comment-id:367363558 --> @kusti8 commented on GitHub (Feb 21, 2018): I don't have any experience with yoga so I wouldn't know where to start. A stylesheet would depend on how libui will get more features. I don't know if there are enough styles to constitute a stylesheet.
Author
Owner

@mdings commented on GitHub (Feb 23, 2018):

Is there a way at all currently to apply styling to the elements?

<!-- gh-comment-id:368029068 --> @mdings commented on GitHub (Feb 23, 2018): Is there a way _at all_ currently to apply styling to the elements?
Author
Owner

@kusti8 commented on GitHub (Mar 2, 2018):

Not right now no. If libui gets more features I'll add it, but for now you can just create objects with all the props and then add {...myStyle} to the component props.

<!-- gh-comment-id:369800742 --> @kusti8 commented on GitHub (Mar 2, 2018): Not right now no. If libui gets more features I'll add it, but for now you can just create objects with all the props and then add `{...myStyle}` to the component props.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/proton-native#7
No description provided.