diff --git a/src/screens/Proxiwash/ProxiwashScreen.js b/src/screens/Proxiwash/ProxiwashScreen.js index 2306646..1d72c3c 100644 --- a/src/screens/Proxiwash/ProxiwashScreen.js +++ b/src/screens/Proxiwash/ProxiwashScreen.js @@ -130,6 +130,19 @@ class ProxiwashScreen extends React.Component { ), }); + navigation.addListener('focus', this.onScreenFocus); + } + + onScreenFocus = () => { + const {state} = this; + const selected = AsyncStorageManager.getString( + AsyncStorageManager.PREFERENCES.selectedWash.key, + ); + if (selected !== state.selectedWash) { + this.setState({ + selectedWash: selected + }); + } } /**