2015-03-23 20:28:42 +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.
|
|
|
|
*/
|
2015-02-20 04:10:52 +00:00
|
|
|
|
|
|
|
#import "RCTNavItemManager.h"
|
|
|
|
|
|
|
|
#import "RCTConvert.h"
|
|
|
|
#import "RCTNavItem.h"
|
|
|
|
|
|
|
|
@implementation RCTNavItemManager
|
|
|
|
|
2015-04-08 12:42:43 +00:00
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
|
2015-02-20 04:10:52 +00:00
|
|
|
- (UIView *)view
|
|
|
|
{
|
|
|
|
return [[RCTNavItem alloc] init];
|
|
|
|
}
|
|
|
|
|
2015-05-07 14:16:59 +00:00
|
|
|
RCT_EXPORT_VIEW_PROPERTY(navigationBarHidden, BOOL)
|
2015-07-16 11:18:12 +00:00
|
|
|
RCT_EXPORT_VIEW_PROPERTY(shadowHidden, BOOL)
|
2015-05-07 14:16:59 +00:00
|
|
|
RCT_EXPORT_VIEW_PROPERTY(tintColor, UIColor)
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(barTintColor, UIColor)
|
2015-06-26 14:06:51 +00:00
|
|
|
RCT_EXPORT_VIEW_PROPERTY(translucent, BOOL)
|
2015-05-07 14:16:59 +00:00
|
|
|
|
2015-03-26 04:29:28 +00:00
|
|
|
RCT_EXPORT_VIEW_PROPERTY(title, NSString)
|
2015-05-07 14:16:59 +00:00
|
|
|
RCT_EXPORT_VIEW_PROPERTY(titleTextColor, UIColor)
|
|
|
|
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(backButtonIcon, UIImage)
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(backButtonTitle, NSString)
|
|
|
|
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(leftButtonTitle, NSString)
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(leftButtonIcon, UIImage)
|
|
|
|
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(rightButtonIcon, UIImage)
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(rightButtonTitle, NSString)
|
2015-02-20 04:10:52 +00:00
|
|
|
|
|
|
|
@end
|