react-native-navigation的迁移库

RNNStore.h 1.0KB

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