react-native-navigation的迁移库

RNNStore.h 1.1KB

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)removeAllComponentsFromWindow:(UIWindow *)window;
  15. - (void)registerExternalComponent:(NSString *)name callback:(RNNExternalViewCreator)callback;
  16. - (UIViewController *)getExternalComponent:(RNNLayoutInfo *)layoutInfo bridge:(RCTBridge *)bridge;
  17. - (NSString*)componentKeyForInstance:(UIViewController*)instance;
  18. - (void)setReadyToReceiveCommands:(BOOL)isReady;
  19. - (BOOL)isReadyToReceiveCommands;
  20. - (void)clean;
  21. @end