react-native-collapsible height not changing on adding some more view

1.3k Views Asked by At

I have a react-native-collapsible view, which render some of the components along with another Collapsible view.

My problem is that after collapse the view of Collapsible component, if I add some components which increase the height of the Collapsible view then Collapsible view is not increasing itself. It adjusts the components, I means its hide some of component and then displays the newly added components.

Here is some code :

<Collapsible
    collapsed={!this.state.display}
    duration={500}
    align="center"
>
    <View>
        ...
        some component
        ...
        {/* Another Collapsible component */}
        <ToggleInputBox
            label="Description"
            value={this.state.description}
            onChangeText={(description) => this.setState({ description, status: 'unsaved' })}
        />
    </View>
</Collapsible>

Related issues :

1. Collapsible Not Correct Height On Component View Update While Open
2. Content height doesn't updating if content view updated.

How I can solve this issue ?

0

There are 0 best solutions below