既然那不是与iOSHealthKit的NativeScript支持。我正在尝试与API合作。首先,我试图为Ishealthdataavailable()获得简单的布尔:如何?声明varnsbundle:any;constructor(){if(Platform.isIOS){lethealthStore=NSBundle.mainBundle.HKHealthStore();letis_avail=healthStore.isHealthDataAvailable();}}(inpromise):TypeError:NSBundle.mainBundle.HKHealthStoreisnota