reza added some thing

master
Reza_ashrafi 3 years ago
parent 48de8b9d4d
commit b78df990bf
  1. BIN
      src/assets/video.mp4
  2. 10
      src/screens/VideoDisplay/index.js

Binary file not shown.

@ -14,7 +14,7 @@ import Drawer from "../../components/Drawer";
import { Video, AVPlaybackStatus } from "expo-av";
import tw from "tailwind-rn";
import Season from './components/Season';
import movie from "../../assets/video.mp4";
// import movie from "../../assets/video.mp4";
const { height, width } = Dimensions.get("window");
@ -23,7 +23,7 @@ function VideoDisplay({
type: "کتاب ها",
name: "ریاضی",
grade: "پایه هفتم ابتدایی",
video: movie,
// video: movie,
season: {
name: "فصل اول: مباحث جوشش مواد مذاب در مرکز زمین",
duration: "2:30:13",
@ -71,7 +71,7 @@ function VideoDisplay({
style={styles.container}
>
<View style={tw("flex flex-col")}>
<Video
{/* <Video
ref={video}
style={{ width: "100%", height: (width * 9) / 16 - 16 }}
source={product.video}
@ -79,7 +79,7 @@ function VideoDisplay({
resizeMode="cover"
isLooping
onPlaybackStatusUpdate={(status) => setStatus(() => status)}
/>
/> */}
<Season season={product.season} />
</View>
</ScrollView>
@ -99,4 +99,4 @@ const styles = StyleSheet.create({
paddingHorizontal: 16,
},
});
export default VideoDisplay;
export default VideoDisplay;
Loading…
Cancel
Save