react-native-navigation的迁移库

RNNOptions.h 830B

1234567891011121314151617181920212223242526272829
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. #import <React/RCTConvert.h>
  4. @class RNNOptions;
  5. @protocol RNNOptionsProtocol <NSObject>
  6. @optional
  7. - (void)resetOptions;
  8. @required
  9. - (void)applyOn:(UIViewController *)viewController;
  10. - (void)applyOnNavigationController:(UINavigationController *)navigationController;
  11. - (void)applyOnTabBarController:(UITabBarController *)tabBarController;
  12. @end
  13. @interface RNNOptions : NSObject <RNNOptionsProtocol>
  14. - (instancetype)initWithDict:(NSDictionary*)dict;
  15. - (void)mergeWith:(NSDictionary*)otherOptions;
  16. - (void)applyOn:(UIViewController *)viewController defaultOptions:(RNNOptions*)defaultOptions;
  17. - (BOOL)hasProperty:(NSString*)propName;
  18. - (void)mergeOptions:(RNNOptions *)otherOptions;
  19. - (void)mergeOptions:(RNNOptions *)otherOptions overrideOptions:(BOOL)override;
  20. @end