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
ExpandableSection - add minHeight #3040
Conversation
/** | ||
* Set a minimum height for the expandableSection | ||
* If the children height is less than the minHeight, the expandableSection will collapse to that height | ||
* If the children height is greater than the minHeight, the expandableSection will result with only the children rendered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not clear "will result with only the children rendered". Do you mean "no height limit will apply"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added (sectionHeader will not be rendered)
return ( | ||
<ScrollView> | ||
<View row center margin-20> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing our usual title "ExpandableSection"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some screens do not have that and we have it in the RNN title
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, but it's strange the the title is "Minimum Height"...
const toValue = expanded ? height : collapsedHeight; | ||
animatedHeight.value = shouldAnimate ? withTiming(toValue) : toValue; | ||
}, | ||
[animatedHeight, expanded, height, minHeight]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to break the line here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how prettify is indenting for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weired
* ExpandableSection - add minHeight * Polish screen * Fix docs * Whatever
Description
ExpandableSection - add minHeight
Changelog
ExpandableSection - add minHeight
Additional info
Ticket 4116