mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Migrate LocationStatus component to TypeScript. (#3300)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user