react-native-navigation的迁移库

123456789101112131415161718192021222324252627282930
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. #import "RNNParentProtocol.h"
  4. #import "ReactNativeNavigation.h"
  5. typedef void (^RNNTransitionCompletionBlock)(void);
  6. typedef void (^RNNTransitionWithComponentIdCompletionBlock)(NSString *componentId);
  7. typedef void (^RNNTransitionRejectionBlock)(NSString *code, NSString *message, NSError *error);
  8. @interface RNNStore : NSObject
  9. - (UIViewController*)findComponentForId:(NSString*)componentId;
  10. - (void)setComponent:(UIViewController*)viewController componentId:(NSString*)componentId;
  11. - (void)removeComponent:(NSString*)componentId;
  12. - (void)removeComponentByViewControllerInstance:(UIViewController*)componentInstance;
  13. - (void)removeAllComponents;
  14. - (void)registerExternalComponent:(NSString *)name callback:(RNNExternalViewCreator)callback;
  15. - (UIViewController *)getExternalComponent:(RNNLayoutInfo *)layoutInfo bridge:(RCTBridge *)bridge;
  16. - (NSString*)componentKeyForInstance:(UIViewController*)instance;
  17. - (void)setReadyToReceiveCommands:(BOOL)isReady;
  18. - (BOOL)isReadyToReceiveCommands;
  19. - (void)clean;
  20. @end