question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RefreshControl can not work in android

See original GitHub issue

hi,when I use ListView ,IOS work well,but android not work!

<ListView enableEmptySections={true} dataSource={this.state.dataSource} refreshControl={ <RefreshControl refreshing={this.state.isRefreshing} onRefresh={this._onRefresh.bind(this)} tintColor=“#ff0000” enabled={true} title=“pull down to update…” colors={[‘#ff0000’, ‘#00ff00’, ‘#0000ff’]} progressBackgroundColor=“#ffff00” /> } onEndReached={this._pullUpToLoadMore.bind(this)} onEndReachedThreshold={this.state.dataSize} renderHeader={this._renderHeader.bind(this)} renderRow={(rowData)=>{return this._renderRow(rowData,_navigator)}} initialListSize = {20} renderScrollComponent={props => <RecyclerViewBackedScrollView {…props} />} renderSeparator={(sectionID, rowID) => <View key={${sectionID}-${rowID}} style={styles.separator} />} />

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
keithicscommented, Feb 8, 2018

+1

0reactions
hzy00commented, Sep 20, 2016

+1 pull-down doesn’t work in android

Read more comments on GitHub >

github_iconTop Results From Across the Web

refreshControl doesn't work on Android #1470
Description If I use FlatList with a custom component as children, the refresh control doesn't show up on Android.
Read more >
Refresh Control not working on Android -React Native
Below code is working for me to achieve Refresh Control import { View, Text, RefreshControl, FlatList } from 'react-native' <FlatList ...
Read more >
Refresh Control not working on Android -React Native-React ...
Coding example for the question Refresh Control not working on Android -React Native-React Native. ... setState( { refreshing: true }, // Do what...
Read more >
RefreshControl
This component is used inside a ScrollView or ListView to add pull to refresh functionality. When the ScrollView is at scrollY: 0 ,...
Read more >
RefreshControl - Pull to Refresh in React Native Apps
Pull to Refresh functionality is implemented using RefreshControl component in React Native. RefreshControl is used inside a ScrollView or ListView to add pull ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found