-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mozilla.js
55 lines (43 loc) · 1.36 KB
/
Mozilla.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import React,{Fragment} from 'react';
import { StyleSheet, Text, View,Dimensions,Animated,ScrollView,Image,ImageBackground, Linking} from 'react-native';
import {Video} from 'expo-av';
import { createStackNavigator, createAppContainer, createDrawerNavigator} from "react-navigation";
import styled from "styled-components/native";
import { TextInput,Button ,Card,Title,Paragraph} from 'react-native-paper';
import { Ionicons } from '@expo/vector-icons';
export default class Mozilla extends React.Component {
render() {
return (
<View style={styles.container}>
<Video source={require("./media/mozilla.mp4")}
rate={1.0}
volume={1.0}
isMuted={true}
resizeMode="cover"
shouldPlay
style={styles.backgroundVideo}/>
<Image style={{height:160 ,width:160,alignSelf:'center',marginTop:30}} source={require('./assets/icon.png')}/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#303F9F',
},
image:{
flex:1,
resizeMode: "cover",
},
cardimage:{
resizeMode:'cover',
},
backgroundVideo:{
position: 'absolute',
top: 0,
left: 0,
bottom: 0,
right: 0,
}
})