react-native-navigation的迁移库

1234567891011121314151617181920212223242526272829
  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. -(void) clean;
  19. @end