We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6c9f98 + 3eb27bd commit 40e8115Copy full SHA for 40e8115
index.js
@@ -99,8 +99,12 @@ var ScrollableTabView = React.createClass({
99
this._updateScrollValue(position + offset);
100
}}
101
ref={(scrollView) => { this.scrollView = scrollView }}>
102
- {this.props.children.map((child) => {
103
- return <View style={{width: deviceWidth}}>{child}</View>
+ {this.props.children.map((child,idx) => {
+ return <View
104
+ key={child.props.tabLabel + '_' + idx}
105
+ style={{width: deviceWidth}}>
106
+ {child}
107
+ </View>
108
})}
109
</ViewPagerAndroid>
110
);
0 commit comments