From b6496e58b1bfcb5e9fc0fdfad809ea0c0c710334 Mon Sep 17 00:00:00 2001 From: Adam Rainsby Date: Thu, 4 Feb 2016 18:28:54 +0000 Subject: [PATCH] Add empty function to onLayout so views can be measured --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 99991aa..9ebce69 100644 --- a/src/index.js +++ b/src/index.js @@ -111,8 +111,9 @@ var Accordion = React.createClass({ style={{ height: this.getTweeningValue('height') }} + onLayout={()=>{}} > - + {}}> {(Platform.OS === 'ios' || this.state.is_visible) ? this.props.content : null}