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