Closed anshgupta1234 closed 4 years ago
Try using Fitness.PermissionKind.Steps
instead.
Yeah, I have got same issue. "Steps" didn't work either.
I think the issue is Expo. I was trying this on Expo project, maybe the same is your or others' case too. One needs to eject for it to work properly. But, I suggest if you do eject, don't use this code, rather, try the native code. Find it from Stackoverflow and try the native modules and then send that data to your React Native project.
Hi @brar07 ,
Yes you cannot use this library with Expo Projects
Copying straight out of the example, I have this code here:
However, it's throwing me an error saying that PermissionKind.Step is undefined. Any idea to why this might be?