Skip to content

Commit

Permalink
0.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
iRoachie authored Apr 25, 2018
2 parents c5e2887 + b0c13ae commit 175492f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions Collapsible.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,8 @@ export default class Collapsible extends Component {
return;
}

this._measureContent(contentHeight => {
this.setState({
contentHeight,
height: new Animated.Value(contentHeight),
});
});
this.state.height.setValue(contentHeight);
this.setState({ contentHeight });
};

render() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-collapsible",
"version": "0.11.1",
"version": "0.11.2",
"description":
"Animated collapsible component for React Native using the Animated API. Good for accordions, toggles etc",
"main": "Collapsible.js",
Expand Down

0 comments on commit 175492f

Please sign in to comment.