mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
08d6cb19c4
Summary: The component RCTRefreshControl was renamed to PullToRefreshView (for Paper). Now only old Objective-C class names have the old name, which is okay. Changelog: [Internal] [Changed] - The internal name of PullToRefresh component was changed from `RCTRefreshControl` to `PullToRefreshView` (No public API changes) Reviewed By: rickhanlonii Differential Revision: D17456225 fbshipit-source-id: a8db99ddd507377d8c98b26707a3b9fae483d20c
28 lines
634 B
Objective-C
28 lines
634 B
Objective-C
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import "RCTRefreshControlManager.h"
|
|
|
|
#import "RCTRefreshControl.h"
|
|
|
|
@implementation RCTRefreshControlManager
|
|
|
|
RCT_EXPORT_MODULE(PullToRefreshView)
|
|
|
|
- (UIView *)view
|
|
{
|
|
return [RCTRefreshControl new];
|
|
}
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(onRefresh, RCTDirectEventBlock)
|
|
RCT_EXPORT_VIEW_PROPERTY(refreshing, BOOL)
|
|
RCT_EXPORT_VIEW_PROPERTY(tintColor, UIColor)
|
|
RCT_EXPORT_VIEW_PROPERTY(title, NSString)
|
|
RCT_EXPORT_VIEW_PROPERTY(titleColor, UIColor)
|
|
|
|
@end
|