react-native-navigation的迁移库

RNNNavigationController.m 550B

123456789101112131415161718192021222324
  1. #import "RNNNavigationController.h"
  2. @implementation RNNNavigationController
  3. - (UIInterfaceOrientationMask)supportedInterfaceOrientations {
  4. return self.viewControllers.lastObject.supportedInterfaceOrientations;
  5. }
  6. - (BOOL)isCustomTransitioned {
  7. return NO;
  8. }
  9. - (BOOL)isAnimated {
  10. UIViewController<RNNRootViewProtocol>* rootVC = (UIViewController<RNNRootViewProtocol>*) self.topViewController;
  11. return rootVC.isAnimated;
  12. }
  13. - (NSString *)componentId {
  14. return ((UIViewController<RNNRootViewProtocol>*)self.topViewController).componentId;
  15. }
  16. @end