Pull to refresh is not working with Tab layout
See original GitHub issueHi,
I am using refreshControl from react-native
with native-base
Tab layout, refreshControl often hangs while pulling to refresh, Please Suggest me some fix for this, Here is the code snippet,
Here is my Tab code where I am applying the pull to refresh functionality
<Tabs tabBarUnderlineStyle={{borderBottomWidth:1}} > <Tab heading={ <TabHeading > <Icon style={styles.TabIcon} name="random" type="FontAwesome" /> <Text style={styles.TabText}>Random</Text> </TabHeading>}> <Content refreshControl={ <RefreshControl refreshing={this.state.refreshing} onRefresh={this._onRefresh} title="Loading..." /> } onScroll={({ nativeEvent }) => { if (isCloseToBottom(nativeEvent)) { this.appendQuotes(); } }} scrollEventThrottle={400} > {quoteList} {spinner} </Content> </Tab>
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
I made a little change in your provided code, to demonstrate basic example of Tabs with pull to refresh. worked fine
Cant find Tab code