react-native-navigation的迁移库

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import <UIKit/UIKit.h>
  10. #import "AppDelegate.h"
  11. static bool isRunningTests()
  12. {
  13. NSDictionary* environment = [[NSProcessInfo processInfo] environment];
  14. NSString* testEnabled = environment[@"TEST_ENABLED"];
  15. return [testEnabled isEqualToString:@"YES"];
  16. }
  17. int main(int argc, char * argv[]) {
  18. @autoreleasepool {
  19. if (isRunningTests()) {
  20. return UIApplicationMain(argc, argv, nil, nil);
  21. } else {
  22. return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
  23. }
  24. }
  25. }