Skip to content

Commit

Permalink
Add empty function to onLayout so views can be measured
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrainsby committed Feb 4, 2016
1 parent bf2806f commit b6496e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ var Accordion = React.createClass({
style={{
height: this.getTweeningValue('height')
}}
onLayout={()=>{}}
>
<View ref="AccordionContent">
<View ref="AccordionContent" onLayout={()=>{}}>
{(Platform.OS === 'ios' || this.state.is_visible) ? this.props.content : null}
</View>
</View>
Expand Down

0 comments on commit b6496e5

Please sign in to comment.