I would first check for the PENDING_LOGOUT_KEY data in async storage and after that, depending if we have something pending, load asynchronously the http_rest.js file.