New data processing

This commit is contained in:
Martin Bauer
2020-06-23 21:36:14 +02:00
parent 655d8b0dc8
commit 00be9e1db2
5 changed files with 61 additions and 57 deletions

View File

@@ -7,6 +7,7 @@ import Graph from './Graph';
import { connect } from 'react-redux';
import { stopSession } from '../state/ActionCreators';
import backgroundColors from './Themes';
import { useKeepAwake } from 'expo-keep-awake';
function LiveTrainingView(props)
@@ -19,6 +20,8 @@ function LiveTrainingView(props)
const laps = (analysis.peaks.size / props.peaksPerLap).toFixed(1);
const totalMomentum = Math.trunc(analysis.totalMomentum / 10000);
useKeepAwake();
return (
<LinearGradient
colors={backgroundColors[props.theme]}