kwameopareasiedu / react-constraint-layout

A react implementation of Android's constraint layout for the web
MIT License
61 stars 1 forks source link

Center a component in the viewport using constraints #31

Open OmerFlame opened 2 years ago

OmerFlame commented 2 years ago

You are not providing a way to constrain the center-X/center-Y of a component to a LayoutGuide, which makes centering components in the viewport quite difficult using only constraints. Can you please add a way to constrain the center-X/center-Y of components as well?

Thanks! This library still goes strong and works quite nicely to this day!

kwameopareasiedu commented 2 years ago

Hi @OmerFlame

So excited u find this library useful. I'm preparing to resume development on it and will add a more robust constraint system that should cater for the centering.

Thanks so much for the support...

OmerFlame commented 2 years ago

Great minds think alike, constraints rule!

NoahAndrews commented 1 year ago

So excited u find this library useful. I'm preparing to resume development on it and will add a more robust constraint system that should cater for the centering.

Thanks so much for the support...

That's great to hear, hopefully that still ends up happening! Thanks for your work on this.