Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support RefreshControl in RecyclerViewBackedScrollView in Android
Summary: In Android, `RecyclerViewBackedScrollView` wasn't using `refreshControl` prop. If a ListView were created with `RecyclerViewBackedScrollView` as its `renderScrollComponent`, then the `refreshControl` wouldn't work. example: ```js <ListView dataSource={this.props.dataSource} renderRow={this._renderRow.bind(this)} refreshControl={ <RefreshControl refreshing={this.props.isRefreshing} onRefresh={this._onRefresh.bind(this)} /> } renderScrollComponent={props => <RecyclerViewBackedScrollView {...props} />}/>; ``` This works in iOS, since the `RecyclerViewBackedScrollView` just returns an `ScrollView`. This pull request uses the `refreshControl` to decide whether it should wrap the `NativeAndroidRecyclerView` with an `AndroidSwipeRefreshLayout` or not. This fixes the issue #7134. Closes #8639 Differential Revision: D3564158 fbshipit-source-id: c10a880ea61cd80b8af789b00be90d46d63eaf9a
- Loading branch information