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,4 +1,5 @@
import Icon from '@components/Icon'
import { Loading } from '@components/Loading'
import CustomText from '@components/Text'
import { useAccessibility } from '@utils/accessibility/AccessibilityManager'
import { StyleConstants } from '@utils/styles/constants'
@ -6,7 +7,6 @@ import { useTheme } from '@utils/styles/ThemeManager'
import { ColorDefinitions } from '@utils/styles/themes'
import React from 'react'
import { View } from 'react-native'
import { Flow } from 'react-native-animated-spinkit'
import { State, Switch, TapGestureHandler } from 'react-native-gesture-handler'
export interface Props {
@ -150,7 +150,7 @@ const MenuRow: React.FC<Props> = ({
) : null}
{loading ? (
<View style={{ position: 'absolute' }}>
<Flow size={StyleConstants.Font.Size.M * 1.25} color={colors.secondary} />
<Loading />
</View>
) : null}
</View>