I have the header that hides on a scroll, So I use ProgressViewOffset
to bring out refresh control loader below the header.
It's working fine on Android. But in IOS we have no support for offset. But I ended up using contentInset and contentOffset but I'm not getting it.
refreshControl: (
<RefreshControl
// refreshing
refreshing={this.props.isloading}
onRefresh={this.onRefresh}
progressViewOffset={200}
/>
),
contentInset: {top: 200},
onMomentumScrollBegin,
onMomentumScrollEnd,
onScrollEndDrag,
ItemSeparatorComponent: this.renderSeparator,
onScrollEventThrottle: 16,
automaticallyAdjustContentInsets: false,
contentOffset: {x: 0, y: -200},
PS: When I use contentContainerStyle and contentInset, There's a space between refreshcontrol and the content...