1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Use native loading spinner

The lib is not being maintained and the animation quality is bad
This commit is contained in:
xmflsct
2023-01-15 20:34:22 +01:00
parent 86c3e91439
commit f10d52cebc
17 changed files with 69 additions and 80 deletions

View File

@ -1,3 +1,4 @@
import { Loading } from '@components/Loading'
import { ParseHTML } from '@components/Parse'
import CustomText from '@components/Text'
import detectLanguage from '@utils/helpers/detectLanguage'
@ -9,7 +10,6 @@ import * as Localization from 'expo-localization'
import React, { useContext, useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { Platform, Pressable } from 'react-native'
import { Circle } from 'react-native-animated-spinkit'
import StatusContext from './Context'
const TimelineTranslate = () => {
@ -111,13 +111,7 @@ const TimelineTranslate = () => {
})
: t('componentTimeline:shared.translate.default')}
</CustomText>
{isFetching ? (
<Circle
size={StyleConstants.Font.Size.M}
color={colors.disabled}
style={{ marginLeft: StyleConstants.Spacing.S }}
/>
) : null}
{isFetching ? <Loading style={{ marginLeft: StyleConstants.Spacing.S }} /> : null}
</Pressable>
{devView()}
{data && data.error === undefined