Skip to content

Commit b6496e5

Browse files
committed
Add empty function to onLayout so views can be measured
1 parent bf2806f commit b6496e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ var Accordion = React.createClass({
111111
style={{
112112
height: this.getTweeningValue('height')
113113
}}
114+
onLayout={()=>{}}
114115
>
115-
<View ref="AccordionContent">
116+
<View ref="AccordionContent" onLayout={()=>{}}>
116117
{(Platform.OS === 'ios' || this.state.is_visible) ? this.props.content : null}
117118
</View>
118119
</View>

0 commit comments

Comments
 (0)