mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 16:23:25 +00:00
chore: cleanup & pass title to header
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@@ -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";
|
||||||
|
Reference in New Issue
Block a user