mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 20:15:11 +00: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:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user