Use rn-push-notifications and set up recurring notification

This commit is contained in:
Julia Friesel
2018-08-27 14:31:28 +02:00
parent e64b46c41b
commit eb41ae354f
9 changed files with 172 additions and 121 deletions
+1 -2
View File
@@ -21,6 +21,7 @@ export default class App extends Component {
currentPage: 'Home'
}
this.backHandler = BackHandler.addEventListener('hardwareBackPress', this.handleBackButtonPress)
setupNotifications(this.navigate)
}
componentWillUnmount() {
@@ -62,5 +63,3 @@ export default class App extends Component {
)
}
}
setupNotifications()
+2 -1
View File
@@ -46,7 +46,8 @@ export const settings = {
tempReminder: {
title: 'Temperature reminder',
noTimeSet: 'Set a time for a daily reminder to take your temperature',
timeSet: time => `Daily reminder set for ${time}`
timeSet: time => `Daily reminder set for ${time}`,
notification: 'Record your morning temperature'
}
}