Skip to content
Snippets Groups Projects
Commit b0d7cd49 authored by Julia Friesel's avatar Julia Friesel
Browse files

Store temperature values as double

parent ef5fa16e
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ let cycleDaysSortedbyTempValueView = [] ...@@ -7,7 +7,7 @@ let cycleDaysSortedbyTempValueView = []
const TemperatureSchema = { const TemperatureSchema = {
name: 'Temperature', name: 'Temperature',
properties: { properties: {
value: 'int', value: 'double',
exclude: 'bool' exclude: 'bool'
} }
} }
......
...@@ -33,6 +33,7 @@ export default class Temp extends Component { ...@@ -33,6 +33,7 @@ export default class Temp extends Component {
/> />
<Button <Button
onPress={() => { onPress={() => {
console.log(Number(this.state.currentValue))
saveTemperature( saveTemperature(
new Date(), new Date(),
{ {
...@@ -48,7 +49,6 @@ export default class Temp extends Component { ...@@ -48,7 +49,6 @@ export default class Temp extends Component {
}} }}
title="Save" title="Save"
/> />
<Text>{cycleDaysSortedbyTempValueView.length}</Text>
<FlatList <FlatList
data = { cycleDaysSortedbyTempValueView } data = { cycleDaysSortedbyTempValueView }
renderItem={({item}) => <Text>{item.temperature.value}</Text>} renderItem={({item}) => <Text>{item.temperature.value}</Text>}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment