mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-10 09:29:39 +08:00
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:
committed by
facebook-github-bot-9
parent
7028206b97
commit
acf977a481
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user