diff --git a/RCTAppleHealthKit/RCTAppleHealthKit.m b/RCTAppleHealthKit/RCTAppleHealthKit.m index ba8d48de4eecaad222392f784674e75889ae3c94..8f103450cff591e10200563bd30585d5cd0634cb 100644 --- a/RCTAppleHealthKit/RCTAppleHealthKit.m +++ b/RCTAppleHealthKit/RCTAppleHealthKit.m @@ -270,7 +270,9 @@ RCT_EXPORT_METHOD(authorizationStatusForType:(NSString *)type resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject { - self.healthStore = [[HKHealthStore alloc] init]; + if (self.healthStore == nil) { + self.healthStore = [[HKHealthStore alloc] init]; + } if ([HKHealthStore isHealthDataAvailable]) { HKObjectType *objectType = [self getWritePermFromString:type];