RespectableThieves / hypecycle

An open-source, React Native-based cycling computer! Track your ride metrics like speed, power, heart rate, and altitude in real time. Manage sensors easily, map your journeys, and look forward to amazing features like live shared data and tracking within your social ride groups. #ReactNative #OpenSource #CyclingTech 🚴‍♂️📲🌐
5 stars 2 forks source link

add strava link stuff #120

Closed craigmulligan closed 1 year ago

craigmulligan commented 1 year ago

This adds a link to the strava activity on the RideSummary component.

A note about the strava API. When you upload an activity it returns the upload_id not the activity_id needed to construct a link. So to construct the link we use the stored upload_id to fetch the activity_id on the fly when the user clicks the view on strava link.

There are more efficient ways to do this but this is the simplest and it seems to work fine right now.