chore: cleanup & pass title to header

This commit is contained in:
Adrian Castro
2024-02-12 13:41:42 +01:00
parent c5a5fd8eb6
commit 3d1a5a88f2
2 changed files with 2 additions and 3 deletions

View File

@@ -104,8 +104,6 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({ data }) => {
: [], : [],
); );
console.log("stream", url);
setVideoSrc({ setVideoSrc({
uri: url, uri: url,
headers: { headers: {
@@ -163,7 +161,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({ data }) => {
style={styles.backgroundVideo} style={styles.backgroundVideo}
/> />
{isLoading && <ActivityIndicator size="large" color="#0000ff" />} {isLoading && <ActivityIndicator size="large" color="#0000ff" />}
{!isLoading && <Header title="S8 E11 Rocky 8" />} {!isLoading && <Header title={data!.title} />}
</View> </View>
); );
}; };

View File

@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import { Image, View } from "react-native"; import { Image, View } from "react-native";
import Icon from "../../../assets/images/icon-transparent.png"; import Icon from "../../../assets/images/icon-transparent.png";