Add comment

This commit is contained in:
Arthur Belleville 2025-07-19 18:57:05 +02:00
parent 59e896ee69
commit 0b3d382285
No known key found for this signature in database
2 changed files with 19 additions and 19 deletions

View file

@ -6,7 +6,7 @@ repos:
entry: just test-frontend entry: just test-frontend
language: python language: python
pass_filenames: false pass_filenames: false
files: \.ts* files: ^ui/.*\.(ts|tsx|js|jsx)$
- id: typecheck - id: typecheck
name: Typecheck Frontend name: Typecheck Frontend
entry: just typecheck entry: just typecheck

View file

@ -206,26 +206,26 @@ export default function HomeScreen() {
// }, [isSearchVisible, searchQuery]); // }, [isSearchVisible, searchQuery]);
// Animated styles using react-native-reanimated // Animated styles using react-native-reanimated
const animatedSearchStyle = useAnimatedStyle(() => { // const animatedSearchStyle = useAnimatedStyle(() => {
const height = interpolate( // const height = interpolate(
searchAnimation.value, // searchAnimation.value,
[0, 1], // [0, 1],
[0, 80], // [0, 80],
Extrapolate.CLAMP // Extrapolate.CLAMP
); // );
const opacity = interpolate( // const opacity = interpolate(
searchAnimation.value, // searchAnimation.value,
[0, 0.5, 1], // [0, 0.5, 1],
[0, 0, 1], // [0, 0, 1],
Extrapolate.CLAMP // Extrapolate.CLAMP
); // );
return { // return {
height, // height,
opacity, // opacity,
}; // };
}); // });
// Simple search header component - no memoization // Simple search header component - no memoization
// const SearchHeader = () => ( // const SearchHeader = () => (