react-native-navigation的迁移库

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