react-native-navigation的迁移库

RNNStore.h 1.1KB

12345678910111213141516171819202122232425262728293031
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. #import "RNNRootViewProtocol.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)registerExternalComponent:(NSString *)name callback:(RNNExternalViewCreator)callback;
  14. - (UIViewController *)getExternalComponent:(NSString *)name props:(NSDictionary*)props bridge:(RCTBridge*)bridge;
  15. -(NSString*)componentKeyForInstance:(UIViewController*)instance;
  16. -(void) setReadyToReceiveCommands:(BOOL)isReady;
  17. -(BOOL) isReadyToReceiveCommands;
  18. -(NSMutableArray*) pendingModalIdsToDismiss;
  19. -(void) clean;
  20. @end