react-native-navigation的迁移库

RNNUIBarButtonItem.m 545B

1234567891011121314151617181920
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. #import "RNNUIBarButtonItem.h"
  4. @implementation RNNUIBarButtonItem
  5. -(instancetype)init:(NSString*)buttonId withIcon:(UIImage*)iconImage {
  6. self = [super initWithImage:iconImage style:UIBarButtonItemStylePlain target:nil action:nil];
  7. self.buttonId = buttonId;
  8. return self;
  9. }
  10. -(instancetype)init:(NSString*)buttonId withTitle:(NSString*)title {
  11. self = [super initWithTitle:title style:UIBarButtonItemStylePlain target:nil action:nil];
  12. self.buttonId = buttonId;
  13. return self;
  14. }
  15. @end