Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
pill_minder
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Phuengton Chummuel
pill_minder
Commits
89ed8bd0
Commit
89ed8bd0
authored
Jan 21, 2018
by
Phuengton Chummuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add reset button
parent
39127469
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
MedicationsScreen.js
src/screens/MedicationsScreen.js
+13
-0
No files found.
src/screens/MedicationsScreen.js
View file @
89ed8bd0
...
@@ -129,9 +129,17 @@ class MedicationsScreen extends Component {
...
@@ -129,9 +129,17 @@ class MedicationsScreen extends Component {
/
>
/
>
<
/MedForm
>
<
/MedForm
>
<
View
>
<
Button
style
=
{
btnAddNoti
}
>
<
Text
style
=
{{
color
:
"#1686C4"
}}
>
Reset
<
/Text
>
<
/Button
>
<
Button
style
=
{
btnAddNoti
}
onPress
=
{()
=>
this
.
_setNotification
()}
>
<
Button
style
=
{
btnAddNoti
}
onPress
=
{()
=>
this
.
_setNotification
()}
>
<
Text
style
=
{{
color
:
"#1686C4"
}}
>
Add
nonotification
<
/Text
>
<
Text
style
=
{{
color
:
"#1686C4"
}}
>
Add
nonotification
<
/Text
>
<
/Button
>
<
/Button
>
<
/View
>
<
/Content
>
<
/Content
>
<
/Container
>
<
/Container
>
)
)
...
@@ -148,6 +156,11 @@ class MedicationsScreen extends Component {
...
@@ -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
)
ToastAndroid
.
show
(
this
.
state
.
date
.
toString
(),
ToastAndroid
.
SHORT
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment