Fixed proxiwash screen not firing componentDidMount

这个提交包含在:
keplyx 2019-08-05 15:02:41 +02:00
父节点 2b21b00ec8
当前提交 cf8014da3f
共有 2 个文件被更改,包括 3 次插入2 次删除

查看文件

@ -51,7 +51,7 @@ export default class FetchedDataSectionList extends React.Component<Props, State
}
/**
* Refresh the FetchedData on first screen load
* Register react navigation events on first screen load
*/
componentDidMount() {
this.willFocusSubscription = this.props.navigation.addListener(

查看文件

@ -42,7 +42,7 @@ export default class ProxiwashScreen extends FetchedDataSectionList {
* Creates machine state parameters using current theme and translations
*/
constructor() {
super(DATA_URL, 1000 * 60); // Refresh every minute
super(DATA_URL, 1000 * 10); // Refresh every minute
let colors = ThemeManager.getCurrentThemeVariables();
stateColors[MACHINE_STATES.TERMINE] = colors.proxiwashFinishedColor;
stateColors[MACHINE_STATES.DISPONIBLE] = colors.proxiwashReadyColor;
@ -78,6 +78,7 @@ export default class ProxiwashScreen extends FetchedDataSectionList {
}
componentDidMount() {
super.componentDidMount();
if (Platform.OS === 'android') {
Expo.Notifications.createChannelAndroidAsync('reminders', {
name: 'Reminders',