Commit 89ed8bd0 authored by Phuengton Chummuel's avatar Phuengton Chummuel

add reset button

parent 39127469
......@@ -129,9 +129,17 @@ class MedicationsScreen extends Component {
/>
</MedForm>
<View>
<Button style={btnAddNoti}>
<Text style={{ color: "#1686C4" }}>Reset</Text>
</Button>
<Button style={btnAddNoti} onPress={() => this._setNotification()}>
<Text style={{ color: "#1686C4" }}>Add nonotification</Text>
</Button>
</View>
</Content>
</Container>
)
......@@ -148,6 +156,11 @@ class MedicationsScreen extends Component {
// })
// }
var reminderDate = new Date(this.state.date).setHours(0, 0, 0, 0)
reminderDate = new Date(reminderDate)
this.setState({ date: reminderDate })
ToastAndroid.show(this.state.date.toString(), ToastAndroid.SHORT)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment