Receiving all pedometer data from CMPedometer using expo-sensors


I was studying the implementation of the expo-sensors package, specificially the pedometer on iOS. I noticed that the Expo package only returns the number of steps received from CMPedometer, as seen on this line: expo/EXPedometer.m at master · expo/expo · GitHub

I want to get other data from CMPedometer, not just the number of steps, like e.g. the distance, activeAveragePace etc (see here: Apple Developer Documentation).

Can you provide insight on how I could do that? I tried adding additional resolve statements to the code linked above, but that’s obviously wrong, I currently do not have any experience with Objective-C so I must be doing something wrong.

Any help is greatly appreciated.