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,
isConnected: null, // internet connectivity
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.
isAnalytics: false,
isLoginDone: false,

View File

@ -235,7 +235,7 @@ class ApplicationContainer extends Component {
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);

View File

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