react-native-navigation的迁移库

RNNStore.m 482B

1234567891011121314151617181920212223242526272829
  1. #import "RNNStore.h"
  2. @interface RNNStore()
  3. @end
  4. @implementation RNNStore
  5. +(instancetype)sharedInstance
  6. {
  7. static RNNStore *sharedInstance = nil;
  8. static dispatch_once_t onceToken = 0;
  9. dispatch_once(&onceToken,^{
  10. if (sharedInstance == nil)
  11. {
  12. sharedInstance = [[RNNStore alloc] init];
  13. }
  14. });
  15. return sharedInstance;
  16. }
  17. +(id<UIApplicationDelegate>)appDelegate {
  18. return UIApplication.sharedApplication.delegate;
  19. }
  20. @end