React-native-collapsible: Collapsible closing without modifying the props.

Created on 26 Jun 2017  路  5Comments  路  Source: oblador/react-native-collapsible

Hi!
I'm having issue with the Collapsible component.

As you can see in this gif, the Collapsible close, but the props doesn't change. When I press on the button to show/hide the collapsible, it change the props value to close (But it doesn't change in the app because it already collapsed!). On the second click, the Collapsible is back open.

Got an explaination/solution/fix?
Thanks!

"react": "16.0.0-alpha.12",
"react-native": "0.45.1",
"react-native-collapsible": "0.8.0",

EDIT: issue on iOS only

awaiting-reply

Most helpful comment

Hi !
I have almost the same issue.
I'm trying to set up the accordion with stateful TextInput inside, and the accordion's content is disappearing when I try to modify the TextInput value.

EDIT : OK nevermind, it was just that my container View had flex: 1

Sorry for the false alert...

All 5 comments

Hey @tiaaaa123 can you set up a simple example repo just so we can see the behaviour and the code that produces it

@tiaaaa123 Have you fixed this issue? I have the same(

Hi !
I have almost the same issue.
I'm trying to set up the accordion with stateful TextInput inside, and the accordion's content is disappearing when I try to modify the TextInput value.

EDIT : OK nevermind, it was just that my container View had flex: 1

Sorry for the false alert...

+1 on removing flex: 1 from the child view inside Collapsible.View.

This one threw me for a loop for hours.

Closing this by the solution of removing flex: 1. If this didn't work and the issue persists then ping me to reopen or create a new issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pkantsedalov picture pkantsedalov  路  5Comments

xxstefanoxx picture xxstefanoxx  路  4Comments

ProfessionalAmateur picture ProfessionalAmateur  路  7Comments

ChildishDanbino picture ChildishDanbino  路  8Comments

brettdh picture brettdh  路  3Comments