Something went wrong. Try again.
A decentralized music tracking and discovery platform built on AT Protocol 🎵 forked from rocksky.app/rocksky
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546import { FontAwesome5 } from "@expo/vector-icons";import { FC } from "react";import { Animated, Pressable } from "react-native";
export type ScrollToTopButtonProps = { bottom: number; fadeAnim: Animated.Value; onPress: () => void;};
const ScrollToTopButton: FC<ScrollToTopButtonProps> = ({ bottom, fadeAnim, onPress,}) => ( <Animated.View style={{ position: "absolute", bottom, left: 20, opacity: fadeAnim, zIndex: 1000, }} > <Pressable onPress={onPress} style={{ borderColor: "#333", borderWidth: 1, borderStyle: "solid", backgroundColor: "#000", borderRadius: 30, width: 60, height: 60, justifyContent: "center", alignItems: "center", elevation: 5, }} > <FontAwesome5 name="chevron-up" size={20} color="white" /> </Pressable> </Animated.View>);
export default ScrollToTopButton;