Use rn-push-notifications and set up recurring notification
This commit is contained in:
+1
-2
@@ -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()
|
||||
@@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user