New data processing
This commit is contained in:
@@ -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]}
|
||||
|
||||
Reference in New Issue
Block a user