import Button from '@components/Button' import haptics from '@components/haptics' import { MenuContainer, MenuRow } from '@components/Menu' import { useActionSheet } from '@expo/react-native-action-sheet' import { useNavigation } from '@react-navigation/native' import { persistor } from '@root/store' import { getLocalActiveIndex, getLocalInstances, getRemoteUrl } from '@utils/slices/instancesSlice' import { changeAnalytics, changeBrowser, changeLanguage, changeTheme, getSettingsAnalytics, getSettingsBrowser, getSettingsLanguage, getSettingsTheme } from '@utils/slices/settingsSlice' import { StyleConstants } from '@utils/styles/constants' import { useTheme } from '@utils/styles/ThemeManager' import Constants from 'expo-constants' import prettyBytes from 'pretty-bytes' import React, { useEffect, useState } from 'react' import { useTranslation } from 'react-i18next' import { StyleSheet, Text } from 'react-native' import { CacheManager } from 'react-native-expo-image-cache' import { ScrollView } from 'react-native-gesture-handler' import { useDispatch, useSelector } from 'react-redux' const DevDebug: React.FC = () => { const { showActionSheetWithOptions } = useActionSheet() const localActiveIndex = useSelector(getLocalActiveIndex) const localInstances = useSelector(getLocalInstances) return ( {}} /> showActionSheetWithOptions( { options: localInstances .map(instance => { return instance.url + ': ' + instance.account.id }) .concat(['Cancel']), cancelButtonIndex: localInstances.length }, buttonIndex => {} ) } />