Starts using redux store for storing the date

This commit is contained in:
Sofiya Tepikin
2019-08-04 21:29:14 +02:00
parent 216a9044cd
commit c226923759
19 changed files with 311 additions and 66 deletions
@@ -2,6 +2,7 @@ import React, { Component } from 'react'
import {
View, Alert, TouchableOpacity
} from 'react-native'
import { saveSymptom } from '../../../db'
import InfoPopUp from './info-symptom'
import Header from '../../header/symptom-view'
@@ -10,9 +11,10 @@ import { sharedDialogs } from '../../../i18n/en/cycle-day'
import Icon from 'react-native-vector-icons/Entypo'
import styles, { iconStyles } from '../../../styles'
export default class SymptomView extends Component {
constructor(props) {
class SymptomView extends Component {
constructor(props, symptomName) {
super()
this.symptomName = symptomName
this.date = props.date
this.navigate = props.navigate
this.state = {
@@ -95,4 +97,6 @@ export default class SymptomView extends Component {
</View>
)
}
}
}
export default SymptomView