Exposes setNativeProps method for PullToRefreshViewAndroid

Summary:
Keep `PullToRefreshViewAndroid` consistent with other components that allow optimization through `setNativeProps`.

Also updates the example to make sure it is working.
Closes https://github.com/facebook/react-native/pull/4771

Reviewed By: svcscm

Differential Revision: D2756033

Pulled By: androidtrunkagent

fb-gh-sync-id: a1f483a3809f01bca06a6a09498f9a89fd65f572
This commit is contained in:
Jack Hsu 2015-12-14 12:53:22 -08:00 committed by facebook-github-bot-9
parent 7028206b97
commit acf977a481

View File

@ -57,6 +57,10 @@ var PullToRefreshViewAndroid = React.createClass({
return this.refs[NATIVE_REF];
},
setNativeProps: function(props) {
return this.refs[NATIVE_REF].setNativeProps(props);
},
render: function() {
return (
<NativePullToRefresh