mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-01-12 22:51:09 +08:00
committed by
Nicolas Gallagher
parent
ec6458c09d
commit
6d92cc5ec3
@@ -167,7 +167,7 @@ const ScrollView = createReactClass({
|
||||
const children =
|
||||
!horizontal && Array.isArray(stickyHeaderIndices)
|
||||
? React.Children.map(this.props.children, (child, i) => {
|
||||
if (stickyHeaderIndices.indexOf(i) > -1) {
|
||||
if (child && stickyHeaderIndices.indexOf(i) > -1) {
|
||||
return React.cloneElement(child, { style: [child.props.style, styles.stickyHeader] });
|
||||
} else {
|
||||
return child;
|
||||
|
||||
Reference in New Issue
Block a user