diff --git a/Libraries/Lists/FlatList.js b/Libraries/Lists/FlatList.js index 0bbbf0b3c..534673974 100644 --- a/Libraries/Lists/FlatList.js +++ b/Libraries/Lists/FlatList.js @@ -388,6 +388,12 @@ class FlatList } } + setNativeProps(props: Object) { + if (this._listRef) { + this._listRef.setNativeProps(props); + } + } + componentWillMount() { this._checkProps(this.props); } diff --git a/Libraries/Lists/MetroListView.js b/Libraries/Lists/MetroListView.js index bbe758282..4a1cb09dc 100644 --- a/Libraries/Lists/MetroListView.js +++ b/Libraries/Lists/MetroListView.js @@ -95,6 +95,11 @@ class MetroListView extends React.Component { getListRef() { return this._listRef; } + setNativeProps(props: Object) { + if (this._listRef) { + this._listRef.setNativeProps(props); + } + } static defaultProps: DefaultProps = { keyExtractor: (item, index) => item.key || String(index), renderScrollComponent: (props: Props) => { diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index fec790df3..680f720e0 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -313,6 +313,12 @@ class VirtualizedList extends React.PureComponent { } } + setNativeProps(props: Object) { + if (this._scrollRef) { + this._scrollRef.setNativeProps(props); + } + } + static defaultProps = { disableVirtualization: false, horizontal: false,