import { useCallback } from 'react'; import { useNavigation } from '@react-navigation/native'; import { FlatList, ListRenderItem, TouchableOpacity, View } from 'react-native'; import { PostModel } from '~/models/post'; import { AppText } from '~/view/components/atoms'; import { usePosts } from '~/view/hooks/query/usePosts'; import { GS } from '~/view/theme/GlobalStyles'; export const HomeScreen = () => { const navigation = useNavigation(); const { posts } = usePosts(); const goToAuth = useCallback(() => { navigation.navigate('Auth'); }, [navigation]); const _renderItem = useCallback>( ({ item }) => ( {item.title} {item.body} ), [], ); return ( Home Screen Go to auth ); };