2016-01-04 15:59:10 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import "RCTRefreshControlManager.h"
|
|
|
|
|
|
|
|
#import "RCTRefreshControl.h"
|
|
|
|
|
|
|
|
@implementation RCTRefreshControlManager
|
|
|
|
|
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
|
|
|
|
- (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)
|
2016-04-16 22:14:50 +00:00
|
|
|
RCT_EXPORT_VIEW_PROPERTY(titleColor, UIColor)
|
2016-01-04 15:59:10 +00:00
|
|
|
|
|
|
|
@end
|