Skip to content

Commit 23c24b3

Browse files
authored
Merge pull request ptomasroos#306 from Richard-Cao/master
dynamic ViewPagerAndroid key
2 parents 457c4a8 + d08677c commit 23c24b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ const ScrollableTabView = React.createClass({
145145
} else {
146146
return (
147147
<ViewPagerAndroid
148+
key={this._children().length}
148149
style={styles.scrollableContentAndroid}
149150
initialPage={this.props.initialPage}
150151
onPageSelected={this._updateSelectedPage}

0 commit comments

Comments
 (0)