Update to PullToRefreshViewAndroid docs

Summary:
As mentioned in https://github.com/facebook/react-native/issues/4793 it is not initially clear that the PullToRefreshViewAndroid component needs the `{flex: 1}` style in order for it's child component to function correctly (without examining the example). This will hopefully clear that up.
Closes https://github.com/facebook/react-native/pull/4814

Reviewed By: svcscm

Differential Revision: D2764534

Pulled By: androidtrunkagent

fb-gh-sync-id: ae1c529342e85f8348b4f683e42bf25df5dbea09
This commit is contained in:
Elliot Hesp 2015-12-16 05:16:15 -08:00 committed by facebook-github-bot-4
parent 1304e78136
commit 6ddcef8a23
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ var NATIVE_REF = 'native_swiperefreshlayout';
/**
* React view that supports a single scrollable child view (e.g. `ScrollView`). When this child
* view is at `scrollY: 0`, swiping down triggers an `onRefresh` event.
*
* The style `{flex: 1}` might be required to ensure the expected behavior of the child component
* (e.g. when the child is expected to scroll with `ScrollView` or `ListView`).
*/
var PullToRefreshViewAndroid = React.createClass({
statics: {