From 3eb27bdee46de1302001f94ed5da7e3300236e8c Mon Sep 17 00:00:00 2001 From: Jacob Patenaude Date: Tue, 8 Dec 2015 15:45:56 -0800 Subject: [PATCH] Add a unique key to tab page mapping (for Android). fixes #86 --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b0a0b022..71c4e87d 100644 --- a/index.js +++ b/index.js @@ -88,8 +88,12 @@ var ScrollableTabView = React.createClass({ this._updateScrollValue(position + offset); }} ref={(scrollView) => { this.scrollView = scrollView }}> - {this.props.children.map((child) => { - return {child} + {this.props.children.map((child,idx) => { + return + {child} + })} );