我正在开发一个应用程序来从Apple获得健身数据,使用这个库:‘rn Healthkit’,但是我得到了错误:
_rnAppleHealthKit.default.initHealthKit is not a function
我遵循了在他们的Github上提到的所有步骤,但没有运行‘react本机链接’命令,因为应用程序由于一些自动链接错误而停止编译。我有经验与世博工作,但这是我的第一个纯粹的反应-本地应用程序。以下是我的代码:
//Mostly Auto-Generated React-native code
import AppleHealthKit from 'rn-app