|
@@ -1,12 +1,12 @@
|
1
|
1
|
// @flow
|
2
|
2
|
|
3
|
3
|
import * as React from 'react';
|
4
|
|
-import {Alert, Platform, View} from 'react-native';
|
|
4
|
+import {Alert, View} from 'react-native';
|
5
|
5
|
import i18n from "i18n-js";
|
6
|
6
|
import WebSectionList from "../../components/Screens/WebSectionList";
|
7
|
7
|
import * as Notifications from "../../utils/Notifications";
|
8
|
8
|
import AsyncStorageManager from "../../managers/AsyncStorageManager";
|
9
|
|
-import * as Expo from "expo";
|
|
9
|
+// import * as Expo from "expo";
|
10
|
10
|
import {Avatar, Banner, Button, Card, Text, withTheme} from 'react-native-paper';
|
11
|
11
|
import ProxiwashListItem from "../../components/Lists/Proxiwash/ProxiwashListItem";
|
12
|
12
|
import ProxiwashConstants from "../../constants/ProxiwashConstants";
|
|
@@ -92,18 +92,18 @@ class ProxiwashScreen extends React.Component<Props, State> {
|
92
|
92
|
this.setState({machinesWatched: fetchedList})
|
93
|
93
|
});
|
94
|
94
|
// Get updated watchlist after received notification
|
95
|
|
- Expo.Notifications.addListener(() => {
|
96
|
|
- Notifications.getMachineNotificationWatchlist((fetchedList) => {
|
97
|
|
- this.setState({machinesWatched: fetchedList})
|
98
|
|
- });
|
99
|
|
- });
|
100
|
|
- if (Platform.OS === 'android') {
|
101
|
|
- Expo.Notifications.createChannelAndroidAsync('reminders', {
|
102
|
|
- name: 'Reminders',
|
103
|
|
- priority: 'max',
|
104
|
|
- vibrate: [0, 250, 250, 250],
|
105
|
|
- });
|
106
|
|
- }
|
|
95
|
+ // Expo.Notifications.addListener(() => {
|
|
96
|
+ // Notifications.getMachineNotificationWatchlist((fetchedList) => {
|
|
97
|
+ // this.setState({machinesWatched: fetchedList})
|
|
98
|
+ // });
|
|
99
|
+ // });
|
|
100
|
+ // if (Platform.OS === 'android') {
|
|
101
|
+ // Expo.Notifications.createChannelAndroidAsync('reminders', {
|
|
102
|
+ // name: 'Reminders',
|
|
103
|
+ // priority: 'max',
|
|
104
|
+ // vibrate: [0, 250, 250, 250],
|
|
105
|
+ // });
|
|
106
|
+ // }
|
107
|
107
|
}
|
108
|
108
|
}
|
109
|
109
|
|