29 lines
691 B
Mathematica
29 lines
691 B
Mathematica
|
/**
|
||
|
* 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)
|
||
|
|
||
|
@end
|