-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ios.js
More file actions
55 lines (52 loc) · 1.19 KB
/
index.ios.js
File metadata and controls
55 lines (52 loc) · 1.19 KB
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, { Component } from 'react';
import {
AppRegistry,
View,
Text,
StyleSheet
} from 'react-native';
import Video from 'react-native-video';
class SpotifyLogin extends Component {
render() {
return (
<View style={styles.container} >
<Video source={{uri: "moments"}} style={styles.video} repeat={true} resizeMode="cover" key="video2" />
<Text style={styles.text}>Nice</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
// position: 'absolute',
// top: 0,
// left: 0,
// right: 0,
// bottom: 0,
flex: 1,
alignItems: 'center',
justifyContent: 'center'
},
video: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
},
backgroundOverlay: {
opacity: 0.5,
backgroundColor: '#ffffff',
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
},
text: {
color: 'black',
fontSize: 25,
fontWeight: '400',
}
});
AppRegistry.registerComponent('SpotifyLogin', () => SpotifyLogin);