diff --git a/src/components/layout/AnimatedFlatList.tsx b/src/components/layout/AnimatedFlatList.tsx index a0ab2bf..4df14ca 100644 --- a/src/components/layout/AnimatedFlatList.tsx +++ b/src/components/layout/AnimatedFlatList.tsx @@ -3,8 +3,6 @@ import { FlatListProps, RefreshControl, StyleSheet, View } from 'react-native' import { TouchableOpacity } from 'react-native-gesture-handler' import Animated, { Extrapolation, - FadeInLeft, - FadeOutRight, interpolate, interpolateColor, useAnimatedScrollHandler, @@ -12,11 +10,22 @@ import Animated, { useSharedValue } from 'react-native-reanimated' import { useSafeAreaInsets } from 'react-native-safe-area-context' +import { + Defs, + LinearGradient, + Mask, + Rect, + Stop, + Svg, + Text, + Use +} from 'react-native-svg' type Props = { refreshing: boolean onRefresh: () => void extraElement?: React.ReactNode + withLogo?: boolean title: string } & FlatListProps @@ -30,6 +39,7 @@ export const AnimatedFlatList = ({ extraElement, refreshing, onRefresh, + withLogo, ...rest }: Props) => { const { top } = useSafeAreaInsets() @@ -72,24 +82,64 @@ export const AnimatedFlatList = ({ return ( - // } - ListFooterComponent={} + refreshControl={ + + } ListHeaderComponent={ - - {extraElement} - - {title} - - + <> + + + + + + + + + + + + Netli.fyi + + + + + + + {title} + + + } {...rest} /> @@ -108,7 +158,7 @@ export const AnimatedFlatList = ({ - + {title} diff --git a/src/components/layout/ScrollView.tsx b/src/components/layout/ScrollView.tsx index 656c127..f1488e4 100644 --- a/src/components/layout/ScrollView.tsx +++ b/src/components/layout/ScrollView.tsx @@ -79,14 +79,13 @@ export const AnimatedScrollView = ({ return ( - // } + refreshControl={ + + } {...rest}> {extraElement} diff --git a/src/views/Sites.tsx b/src/views/Sites.tsx index fa82271..188ffc3 100644 --- a/src/views/Sites.tsx +++ b/src/views/Sites.tsx @@ -35,8 +35,7 @@ export const Sites = ({ return (