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

Revert "Try out FlashList"

This reverts commit 8406a57143.
This commit is contained in:
xmflsct
2023-01-06 14:00:50 +01:00
parent 8406a57143
commit c7a472124c
13 changed files with 108 additions and 146 deletions

View File

@ -1,13 +1,12 @@
import haptics from '@components/haptics'
import Icon from '@components/Icon'
import { FlashList } from '@shopify/flash-list'
import { InfiniteData, useQueryClient } from '@tanstack/react-query'
import { QueryKeyTimeline, TimelineData, useTimelineQuery } from '@utils/queryHooks/timeline'
import { StyleConstants } from '@utils/styles/constants'
import { useTheme } from '@utils/styles/ThemeManager'
import React, { RefObject, useCallback, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { LayoutChangeEvent, Platform, StyleSheet, Text, View } from 'react-native'
import { FlatList, LayoutChangeEvent, Platform, StyleSheet, Text, View } from 'react-native'
import { Circle } from 'react-native-animated-spinkit'
import Animated, {
Extrapolate,
@ -20,7 +19,7 @@ import Animated, {
} from 'react-native-reanimated'
export interface Props {
flRef: RefObject<FlashList<any>>
flRef: RefObject<FlatList<any>>
queryKey: QueryKeyTimeline
scrollY: Animated.SharedValue<number>
fetchingType: Animated.SharedValue<0 | 1 | 2>