<commit_before>// @flow
import {clearAsyncStorage} from './storage'
import restart from 'react-native-restart'
import {clearLoginCredentials} from './login'

export async function refreshApp() {
  await clearAsyncStorage()
  await clearLoginCredentials()
  restart.Restart()
}<commit_msg>reset the app icon when resetting the app<commit_after>// @flow
import {clearAsyncStorage} from './storage'
import restart from 'react-native-restart'
import {clearLoginCredentials} from './login'
import {reset as resetAppIcon} from '@hawkrives/react-native-alternate-icons'

export async function refreshApp() {
  await clearAsyncStorage()
  await clearLoginCredentials()
  await resetAppIcon()
  restart.Restart()
}
{'fraction_non_alphanumeric': 0.10921985815602837, 'fraction_numerical': 0.0, 'mean_word_length': 5.921568627450981, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7182263', 'n_tokens_mistral': 195, 'n_tokens_neox': 203, 'n_words': 61}