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 refreshing prop and doc improvements #6434

Closed

Conversation

janicduplessis
Copy link
Contributor

This makes the refreshing prop more 'controlled'. Before forgetting to set the refreshing prop in the onRefresh callback would make the js and native refreshing prop get out of sync and make the RefreshControl stop refreshing properly (see #5839).

I also added a simple usage example and a note about the refreshing prop in the doc.

There was also a small bug in the doc generation code that made the array of color show as [[object Object]] instead of [color] so I fixed that too.

* Test plan*
Tested using the UIExplorer example on iOS and Android. Not setting the refreshing prop to true in the onRefresh function should cause the RefreshControl to stop refreshing immediately and continue working properly after.

Closes #5839

@janicduplessis
Copy link
Contributor Author

Bot plz?!?! :)

cc @nicklockwood @vjeux

@facebook-github-bot
Copy link
Contributor

@janicduplessis updated the pull request.

@janicduplessis janicduplessis force-pushed the refresh-control-patch-2 branch from 90ff05d to c2d4419 Compare March 12, 2016 22:31
@facebook-github-bot
Copy link
Contributor

@janicduplessis updated the pull request.

@nicklockwood
Copy link
Contributor

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

@janicduplessis updated the pull request.

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to Phabricator to review.

@ghost ghost closed this in 88ebdb2 Mar 13, 2016
@janicduplessis janicduplessis deleted the refresh-control-patch-2 branch March 14, 2016 03:03
@facebook-github-bot
Copy link
Contributor

@janicduplessis updated the pull request.

1 similar comment
@facebook-github-bot
Copy link
Contributor

@janicduplessis updated the pull request.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RefreshControl still is showing even the value of refreshing is false
3 participants