react-native-gifted-listview
react-native-gifted-listview copied to clipboard
Show a waiting icon of refresh at first load
Hi,
When i show listView i notice an icon show top-right , look like a bug ? how can i hide this icon. this my config:
<GiftedListView
rowView={this._renderRow}
onFetch={this._onFetch}
firstLoader={true} // display a loader for the first fetching
pagination={true} // enable infinite scrolling using touch to load more
refreshable={true} // enable pull-to-refresh for iOS and touch-to-refresh for Android
withSections={false} // enable sections
paginationAllLoadedView={this._renderPaginationAllLoadedView}
customStyles={{
paginationView: {
backgroundColor: '#eee',
},
}}
refreshableTintColor="blue"
/>
Please Help!.
There's an issue open for this for the React Native Refresh Control (been open for a while now). Setting the style of the refresh control to { backgroundColor: 'transparent' } does hide it. There is a property on GiftedListView of refreshableProgressBackgroundColor. Try setting that to transparent and see if that helps. I haven't tried this prop, but it's worth a shot.
Looking at the source, that prop isn't what I thought it was for. There is no style being passed to the RefreshControl. So, unless you modify the source to add it, I'm not sure you can fix it. This would be a good pull request to fix the issue until the RN team addresses it.
very good