mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Migrate RefreshControl to Native Commands
Summary: Changelog: [Internal] Introduce native command `setNativeRefreshing`, it has the word Native in order to avoid name conflict with setRefreshing in Android implementation. Even this component is iOS only, it would make it easier to merge them in the future. Introduce `RCTRefreshableProtocol` and make `RCTRefreshControl` and `RCTPullToRefreshViewComponentView` to conform to the protocol so view manager can forward command to both, Paper and Fabric component. Reviewed By: mmmulani Differential Revision: D18475804 fbshipit-source-id: 4c19225784efc931b7b8f2d2671cc839bce429bf
This commit is contained in:
committed by
Facebook Github Bot
parent
83f0210cee
commit
2d80a248cd
+1
@@ -17,4 +17,5 @@ public interface PullToRefreshViewManagerInterface<T extends View> {
|
||||
void setTitleColor(T view, @Nullable Integer value);
|
||||
void setTitle(T view, @Nullable String value);
|
||||
void setRefreshing(T view, boolean value);
|
||||
void setNativeRefreshing(T view, boolean refreshing);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user