Skip to content

Conversation

@truph01
Copy link
Contributor

@truph01 truph01 commented Sep 17, 2024

  • This PR will fix the issue content is not displayed if collapsed is true in #479

  • Here is the result after the fix:

Android:

Screen.Recording.2024-09-17.at.09.24.11.mov

Ios:

Screen.Recording.2024-09-17.at.09.24.24.mov


componentDidMount() {
if (!this.props.collapsed) {
this._toggleCollapsed(this.props.collapsed);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
this._toggleCollapsed(this.props.collapsed);
this._measureContent((height) => this.state.height.setValue(height));

Just sharing other option in case we don't want to show the animation transition initially.
cc: @oblador

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-09-17.at.22.03.32.mp4

@ravindraguptacapgemini
Copy link

@oblador can you please merge this fix and release newer version?

@jadonhansen
Copy link

@oblador merging this can potentially close two of the GitHub issues for this package. When can you get to this please?

@zabojad
Copy link

zabojad commented Aug 15, 2025

August 2025 and still no merge here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants