Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes on getting heart rate data #106

Open
amrita154 opened this issue Nov 27, 2021 · 2 comments
Open

App crashes on getting heart rate data #106

amrita154 opened this issue Nov 27, 2021 · 2 comments

Comments

@amrita154
Copy link

App crashes on getting current heart rate from google fit

My code:-
Fitness.getHeartRate({
startDate:moment().subtract('days',1).toISOString(),
endDate: moment().toISOString(),
interval:'hour',
})
.then(res => {
console.log('heart rate', res);
// setHeartRate(res);
})
.catch(err => {
console.log('error in heart rate' + err);
});
App crashes with an exception

com.facebook.react.bridge.ObjectAlreadyConsumedException: Map already consumed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants