diff --git a/app/post.tsx b/app/post.tsx index 6e0af00..c1668c9 100644 --- a/app/post.tsx +++ b/app/post.tsx @@ -1,4 +1,4 @@ -import { Text, View, StyleSheet, ScrollView } from 'react-native' +import { Text, View, StyleSheet, ScrollView, useWindowDimensions } from 'react-native' import { useLocalSearchParams } from 'expo-router' import axios from 'axios' import { useAuthStore, useSubscription } from '../store' @@ -14,6 +14,8 @@ export default() => { const { subscriptions } = useSubscription() + const { width: screenWidth } = useWindowDimensions() + useEffect(() => { fetchPost() }, []) @@ -54,6 +56,8 @@ export default() => { {post.author && {post.author} · }{subscriptions[post.feed_id].title}