Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
backup
Drip
Commits
6c6d8ae0
Commit
6c6d8ae0
authored
6 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Add reminder setting
parent
b0019d85
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
components/home.js
+1
-0
1 addition, 0 deletions
components/home.js
components/labels.js
+4
-0
4 additions, 0 deletions
components/labels.js
components/settings.js
+34
-1
34 additions, 1 deletion
components/settings.js
with
39 additions
and
1 deletion
components/home.js
+
1
−
0
View file @
6c6d8ae0
...
...
@@ -9,6 +9,7 @@ import { LocalDate } from 'js-joda'
import
styles
from
'
../styles/index
'
import
cycleModule
from
'
../lib/cycle
'
import
{
getOrCreateCycleDay
,
bleedingDaysSortedByDate
,
fillWithDummyData
,
deleteAll
}
from
'
../db
'
import
{
NotificationsAndroid
}
from
'
react-native-notifications
'
const
getCycleDayNumber
=
cycleModule
().
getCycleDayNumber
...
...
This diff is collapsed.
Click to expand it.
components/labels.js
+
4
−
0
View file @
6c6d8ae0
...
...
@@ -42,6 +42,10 @@ export const settings = {
max
:
'
Max
'
,
loadError
:
'
Could not load saved temperature scale settings
'
,
saveError
:
'
Could not save temperature scale settings
'
},
tempReminder
:
{
title
:
'
Temperature reminder
'
,
explainer
:
'
Set a morning reminder to take your temperature
'
}
}
...
...
This diff is collapsed.
Click to expand it.
components/settings.js
+
34
−
1
View file @
6c6d8ae0
...
...
@@ -4,8 +4,11 @@ import {
TouchableOpacity
,
ScrollView
,
Alert
,
Text
Text
,
TextInput
,
Keyboard
}
from
'
react-native
'
import
DateTimePicker
from
'
react-native-modal-datetime-picker-nevo
'
import
Slider
from
'
@ptomasroos/react-native-multi-slider
'
import
Share
from
'
react-native-share
'
import
{
DocumentPicker
,
DocumentPickerUtil
}
from
'
react-native-document-picker
'
...
...
@@ -18,9 +21,39 @@ import importCsv from '../lib/import-export/import-from-csv'
import
{
scaleObservable
,
saveTempScale
}
from
'
../local-storage
'
export
default
class
Settings
extends
Component
{
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{}
}
render
()
{
return
(
<
ScrollView
>
<
View
style
=
{
styles
.
settingsSegment
}
>
<
Text
style
=
{
styles
.
settingsSegmentTitle
}
>
{
settingsLabels
.
tempReminder
.
title
}
<
/Text
>
<
Text
>
{
settingsLabels
.
tempReminder
.
explainer
}
<
/Text
>
<
TextInput
style
=
{
styles
.
temperatureTextInput
}
onFocus
=
{()
=>
{
Keyboard
.
dismiss
()
this
.
setState
({
isTimePickerVisible
:
true
})
}}
value
=
{
this
.
state
.
time
}
/
>
<
DateTimePicker
mode
=
"
time
"
isVisible
=
{
this
.
state
.
isTimePickerVisible
}
onConfirm
=
{
jsDate
=>
{
this
.
setState
({
time
:
`
${
jsDate
.
getHours
()}
:
${
jsDate
.
getMinutes
()}
`
,
isTimePickerVisible
:
false
})
}}
onCancel
=
{()
=>
this
.
setState
({
isTimePickerVisible
:
false
})}
/
>
<
/View
>
<
View
style
=
{
styles
.
settingsSegment
}
>
<
Text
style
=
{
styles
.
settingsSegmentTitle
}
>
{
settingsLabels
.
tempScale
.
segmentTitle
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment