Skip to content

App crashes on getting heart rate data #106

@amrita154

Description

@amrita154

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions