Migrate LocationStatus component to TypeScript. (#3300)

This commit is contained in:
Corey Farwell
2025-12-17 13:44:29 -05:00
committed by GitHub
parent a5f901a24b
commit 264e320319

View File

@@ -5,7 +5,13 @@ import { Animated } from "react-native";
import { useTranslation } from "sharedHooks";
import colors from "styles/tailwindColors";
const LocationStatus = ( { useLocation, visible, onAnimationEnd } ) => {
interface Props {
onAnimationEnd: () => void;
useLocation: boolean;
visible: boolean;
}
const LocationStatus = ( { useLocation, visible, onAnimationEnd }: Props ) => {
const { t } = useTranslation();
const opacity = useRef( new Animated.Value( 0 ) ).current;