Skip to content

Commit de16ffe

Browse files
author
stevegalili
committed
Fixing up video 📺 issues by iOS
1 parent 130738b commit de16ffe

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/Video.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {Colors} from 'react-native/Libraries/NewAppScreen'
44
// @ts-ignore
55
import Video from 'react-native-video'
66

7+
const FOO_FIGHTERS_VIDEO = "https://cdn77-vid.xvideos-cdn.com/H7bKgXGzY9w1RRxgtrWbWg==,1622395890/videos/3gp/0/e/2/xvideos.com_0e2389203a2221da619cc648b95237df.mp4"
78
// @ts-ignore
89
export default ({navigation}) => {
910
const [isPlaying, setIsPlaying] = useState(false)
@@ -30,7 +31,7 @@ export default ({navigation}) => {
3031
<>
3132
<Video
3233
accessibilityLabel={"video component"}
33-
source={{uri: "https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4"}}
34+
source={{uri: FOO_FIGHTERS_VIDEO}}
3435
style={isFullScreen ? styles.videoFullScreen : styles.video}
3536
resizeMode={'cover'}
3637
paused={isPlaying}
@@ -77,8 +78,8 @@ const styles = StyleSheet.create({
7778
alignItems: "center"
7879
},
7980
video: {
80-
width: 100,
81-
height: 100
81+
width: 200,
82+
height: 200
8283
},
8384
videoFullScreen: {
8485
width: "100%",

0 commit comments

Comments
 (0)