fix: deps
This commit is contained in:
@@ -25,12 +25,12 @@ export default function HomeScreen() {
|
||||
data: shows = [],
|
||||
error,
|
||||
isLoading: loading,
|
||||
refetch: refetchShows, // ⬅️ refetch aus Hook
|
||||
refetch: refetchShows, // ⬅️ refetch aus Hook
|
||||
} = useShows();
|
||||
|
||||
const {
|
||||
data: streamingServices = {},
|
||||
refetch: refetchServices, // ⬅️ refetch aus Hook
|
||||
refetch: refetchServices, // ⬅️ refetch aus Hook
|
||||
} = useStreamingServices();
|
||||
|
||||
const [activeFilter, setActiveFilter] = React.useState<string>("all");
|
||||
@@ -56,7 +56,9 @@ export default function HomeScreen() {
|
||||
try {
|
||||
await Promise.all([
|
||||
typeof refetchShows === "function" ? refetchShows() : Promise.resolve(),
|
||||
typeof refetchServices === "function" ? refetchServices() : Promise.resolve(),
|
||||
typeof refetchServices === "function"
|
||||
? refetchServices()
|
||||
: Promise.resolve(),
|
||||
]);
|
||||
} finally {
|
||||
setRefreshing(false);
|
||||
@@ -153,7 +155,9 @@ export default function HomeScreen() {
|
||||
borderRadius: 8,
|
||||
}}
|
||||
>
|
||||
<Text style={{ color: "white", fontWeight: "600" }}>Erneut versuchen</Text>
|
||||
<Text style={{ color: "white", fontWeight: "600" }}>
|
||||
Erneut versuchen
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
</View>
|
||||
@@ -183,13 +187,12 @@ export default function HomeScreen() {
|
||||
accessibilityRole="button"
|
||||
accessibilityLabel="Menü öffnen"
|
||||
>
|
||||
<Feather name="menu" size={22} color="#FFFFFF" />
|
||||
<Feather name="info" size={22} color="#FFFFFF" />
|
||||
</TouchableOpacity>
|
||||
|
||||
<Text style={styles.title}>FLTR</Text>
|
||||
</View>
|
||||
|
||||
|
||||
<RNScrollView
|
||||
contentContainerStyle={{ paddingBottom: 30 }}
|
||||
showsVerticalScrollIndicator={false}
|
||||
@@ -197,8 +200,8 @@ export default function HomeScreen() {
|
||||
<RefreshControl
|
||||
refreshing={refreshing}
|
||||
onRefresh={onRefresh}
|
||||
tintColor="#FFFFFF" // iOS Spinner
|
||||
colors={["#FFFFFF"]} // Android Spinner
|
||||
tintColor="#FFFFFF" // iOS Spinner
|
||||
colors={["#FFFFFF"]} // Android Spinner
|
||||
progressBackgroundColor="hsla(0, 0%, 29%, 1.00)"
|
||||
/>
|
||||
}
|
||||
@@ -274,7 +277,7 @@ export default function HomeScreen() {
|
||||
{uniqueStreamingServices.map((serviceName) => {
|
||||
const streamingService =
|
||||
streamingServices[
|
||||
`assets.images.streamingServices.${serviceName.toLowerCase()}`
|
||||
`assets.images.streamingServices.${serviceName.toLowerCase()}`
|
||||
];
|
||||
return (
|
||||
<TouchableOpacity
|
||||
@@ -332,15 +335,15 @@ export default function HomeScreen() {
|
||||
.map(
|
||||
(s) =>
|
||||
streamingServices[
|
||||
`assets.images.streamingServices.${s.toLowerCase()}`
|
||||
`assets.images.streamingServices.${s.toLowerCase()}`
|
||||
]
|
||||
)}
|
||||
genres={show.genres}
|
||||
{...(showLiveBadge
|
||||
? {
|
||||
liveBadgeText: "LIVE",
|
||||
liveBadgeContainerStyle: styles.liveBadgeContainer,
|
||||
}
|
||||
liveBadgeText: "LIVE",
|
||||
liveBadgeContainerStyle: styles.liveBadgeContainer,
|
||||
}
|
||||
: {})}
|
||||
/>
|
||||
);
|
||||
|
||||
3463
package-lock.json
generated
3463
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
23
package.json
23
package.json
@@ -20,19 +20,19 @@
|
||||
"@react-navigation/elements": "^2.3.8",
|
||||
"@react-navigation/native": "^7.1.6",
|
||||
"@tanstack/react-query": "^5.90.5",
|
||||
"expo": "54.0.21",
|
||||
"expo-blur": "~15.0.7",
|
||||
"expo": "~54.0.33",
|
||||
"expo-blur": "~15.0.8",
|
||||
"expo-constants": "~18.0.10",
|
||||
"expo-font": "~14.0.8",
|
||||
"expo-haptics": "~15.0.7",
|
||||
"expo-image": "~3.0.10",
|
||||
"expo-linking": "~8.0.8",
|
||||
"expo-router": "~6.0.14",
|
||||
"expo-splash-screen": "~31.0.10",
|
||||
"expo-status-bar": "~3.0.8",
|
||||
"expo-symbols": "~1.0.7",
|
||||
"expo-system-ui": "~6.0.8",
|
||||
"expo-web-browser": "~15.0.8",
|
||||
"expo-haptics": "~15.0.8",
|
||||
"expo-image": "~3.0.11",
|
||||
"expo-linking": "~8.0.11",
|
||||
"expo-router": "~6.0.23",
|
||||
"expo-splash-screen": "~31.0.13",
|
||||
"expo-status-bar": "~3.0.9",
|
||||
"expo-symbols": "~1.0.8",
|
||||
"expo-system-ui": "~6.0.9",
|
||||
"expo-web-browser": "~15.0.10",
|
||||
"react": "19.1.0",
|
||||
"react-dom": "19.1.0",
|
||||
"react-native": "0.81.5",
|
||||
@@ -46,6 +46,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.25.2",
|
||||
"@react-native-community/cli": "^20.0.2",
|
||||
"@types/react": "~19.1.10",
|
||||
"eslint": "^9.25.0",
|
||||
"eslint-config-expo": "~10.0.0",
|
||||
|
||||
Reference in New Issue
Block a user