react-native-gifted-listview icon indicating copy to clipboard operation
react-native-gifted-listview copied to clipboard

Show a waiting icon of refresh at first load

Open TechGuyVN opened this issue 8 years ago • 3 comments

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"
        />

screen shot 2016-08-17 at 11 01 52 am

Please Help!.

TechGuyVN avatar Aug 17 '16 04:08 TechGuyVN

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.

regentcid434 avatar Aug 18 '16 15:08 regentcid434

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.

regentcid434 avatar Aug 18 '16 20:08 regentcid434

very good

xujinyang avatar Sep 01 '16 04:09 xujinyang