From acf977a4815a65236e91005b4470a4a24b706c1a Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Mon, 14 Dec 2015 12:53:22 -0800 Subject: [PATCH] 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 --- Libraries/PullToRefresh/PullToRefreshViewAndroid.android.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/PullToRefresh/PullToRefreshViewAndroid.android.js b/Libraries/PullToRefresh/PullToRefreshViewAndroid.android.js index 40842d0a2..41acc8017 100644 --- a/Libraries/PullToRefresh/PullToRefreshViewAndroid.android.js +++ b/Libraries/PullToRefresh/PullToRefreshViewAndroid.android.js @@ -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 (