import analytics from '@components/analytics' import Button from '@components/Button' import haptics from '@components/haptics' import ComponentInstance from '@components/Instance' import { useNavigation } from '@react-navigation/native' import initQuery from '@utils/initQuery' import { getInstanceActive, getInstances, Instance } from '@utils/slices/instancesSlice' import { StyleConstants } from '@utils/styles/constants' import { useTheme } from '@utils/styles/ThemeManager' import React, { useEffect, useRef } from 'react' import { useTranslation } from 'react-i18next' import { KeyboardAvoidingView, Platform, StyleSheet, Text, View } from 'react-native' import { ScrollView } from 'react-native-gesture-handler' import { useSelector } from 'react-redux' interface Props { instance: Instance selected?: boolean } const AccountButton: React.FC = ({ instance, selected = false }) => { const navigation = useNavigation() return (