added todo tags for application container optimising

This commit is contained in:
noumantahir 2022-06-20 16:33:03 +05:00
parent dd320e3d11
commit e2c77a1dbb
3 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,7 @@ const initialState = {
isActive: false, isActive: false,
isConnected: null, // internet connectivity isConnected: null, // internet connectivity
isDarkTheme: false, isDarkTheme: false,
isDefaultFooter: true, isDefaultFooter: true, //TODO: remove present of isDefaultFooter as it's no longer in use
isLoggedIn: false, // Has any logged in user. isLoggedIn: false, // Has any logged in user.
isAnalytics: false, isAnalytics: false,
isLoginDone: false, isLoginDone: false,

View File

@ -235,7 +235,7 @@ class ApplicationContainer extends Component {
if (!isIos) BackHandler.removeEventListener('hardwareBackPress', this._onBackPress); if (!isIos) BackHandler.removeEventListener('hardwareBackPress', this._onBackPress);
// NetInfo.isConnected.removeEventListener('connectionChange', this._handleConntectionChange); //TOOD: listen for back press and cancel all pending api requests;
Linking.removeEventListener('url', this._handleOpenURL); Linking.removeEventListener('url', this._handleOpenURL);

View File

@ -269,6 +269,7 @@ class SettingsContainer extends Component {
type: actionType, type: actionType,
}), }),
); );
//TODO: remove setting notification settings
setNotificationSettings({ setNotificationSettings({
action, action,
type: actionType, type: actionType,