Make animated collapsible card component, with initial props to show or hide
问题 Background Using React Native I was able to make collapsible card component. On Icon click the card slides up hiding its content, or expands showing its content. I would think setting the default value would be as easy as setting expanded to false or true, but I think the problem here is that when it is toggled an animation is triggered which changes the height of the card. Example class CardCollapsible extends Component{ constructor(props){ super(props); this.state = { title: props.title,