Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RefreshControl is still showing, doesn't hide even the value of refreshing is changed to false #6893

Closed
pomelio opened this issue Apr 10, 2016 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@pomelio
Copy link

pomelio commented Apr 10, 2016

the RN version is 0.23

This happens sometimes, not always. If I make a breakpoint in the chrome devtools then press continue button, it won't to happen.


render() : ReactElement {
        log('Activities:render');
        let naviBar = this._renderNaviBar();
        this._dataSource = this._dataSource.cloneWithRows([...this.state.uploaded, ...this.state.activities]);
        return (
                <View style={styles.page} >
                    <View style={styles.pageNaviBar} >
                        {naviBar}
                    </View>
                    {this._renderError()}
                    <View style={styles.pageContent} >
                        <ListView
                            refreshControl={
                            <RefreshControl
                                refreshing={this.state.isLoading}
                                onRefresh={this._refresh}
                                tintColor="#ff0000"
                                title="Loading..."
                                colors={['#ff0000', '#00ff00', '#0000ff']}
                                progressBackgroundColor="#ffff00" />}
                            ref="listview"
                            enableEmptySections={true}
                            dataSource={this._dataSource}
                            renderRow={this._renderRow}
                            onEndReached = {this._next}
                            style={styles.content}/>
                    </View>
                    {this.menu}
                </View>);
    }

screen shot 2016-04-10 at 12 24 53 pm
screen shot 2016-04-10 at 12 24 33 pm

@pomelio pomelio changed the title RefreshControl still is showing even the value of refreshing is false RefreshControl is still showing, doesn't hide even the value of refreshing is changed to false Apr 10, 2016
@cpunion
Copy link
Contributor

cpunion commented Apr 10, 2016

Maybe this PR #6737 can fix it.

Would you like to test it?

@pomelio
Copy link
Author

pomelio commented Apr 10, 2016

I just applied it to my project. It looks fix my issue. Thanks everyone

@pomelio pomelio closed this as completed Apr 10, 2016
@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants