-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is width required? #229
Comments
A |
I see your point, and part of me agrees with you, but I still feel like it's an opinionated standpoint that adds an unnecessary constraint. I can definitely see the benefits of using AutoSize for the height of a component, but for the width... I feel like the AutoSize HOC adds an unnecessary layer of complexity, not to mention the performance hit (which is especially true when working with low powered mobile devices) |
You don't have to use It is an opinionated standpoint but it provides the most flexibility to users. You can use a fixed-size, or |
This is disappointing. I am still confused on the answer. Why does |
Why isn't the
width
prop optional? Shouldn't it just default towidth: 100%
and be an optional prop?The text was updated successfully, but these errors were encountered: