Revery: Style is missing flexWrap

Created on 29 Jan 2019  路  7Comments  路  Source: revery-ui/revery

If I understand correctly you using Yoga under the hood and it already supports flexWrap: https://yogalayout.com/docs/flex-wrap/

Is there a reason why it's not supported or is this an easy addition? Happy to open a PR: https://github.com/revery-ui/revery/blob/master/src/UI/Style.re#L35-L38

bug good first issue help wanted

Most helpful comment

@czystyl justed did one here, but you could check if others are missing as well

All 7 comments

Afaik this library depends on Jordan Walke's Flex. https://github.com/jordwalke/flex

Thanks for the issue, @nikgraf !

Yes, we are still missing some of the style properties supported by the flex library - a PR to add flexWrap would be great 馃憤

@nikgraf Let me know if you will be doing this one; if not, I'll like to help with this one and start contributing here 馃挭

@czystyl justed did one here, but you could check if others are missing as well

@bryphe I see that these props are missing from :

  • [ ] marginStart
  • [ ] marginEnd
  • [ ] minWidth
  • [ ] minHeight
  • [ ] maxWidth
  • [ ] maxHeight

I don't know the codebase well but couldn't find these options in the codebase. Let me know if Revery should handle that case as well.

@czystyl - good catch! Yes, the flex library we're using supports those - we should expose those too in our style props and pass them through for the layout engine. Would be great to have those as well. 馃憤

Was this page helpful?
0 / 5 - 0 ratings