FlexLayout icon indicating copy to clipboard operation
FlexLayout copied to clipboard

Why not use Bool value as parameter in display(..)

Open wjling opened this issue 4 years ago • 3 comments

Just asking. If taking Bool as parameter we can use this function as we use isHidden property in UIView. It will be more convenient I think.

wjling avatar Sep 12 '19 03:09 wjling

Sorry @wjling, I'm not sure to understand your comment 🤔

lucdion avatar Oct 30 '19 16:10 lucdion

Sorry I don't express myself clearly. I just think about that if the API is designed as display(true) and display(false), it may be clearer and more convenient than display(.none) and display(.flex). Never mind, I'm just a little curious :D

wjling avatar Nov 08 '19 03:11 wjling

display: flex is Flexbox CSS syntax. flex and none come from Yoga. I guess the API is just trying to be true to that.

okaverin avatar Apr 25 '20 12:04 okaverin

Very old topic. Closing it.

lucdion avatar Mar 01 '23 20:03 lucdion