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