-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.vr.js
More file actions
34 lines (31 loc) · 830 Bytes
/
index.vr.js
File metadata and controls
34 lines (31 loc) · 830 Bytes
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
import React, { PureComponent } from 'react';
import { AppRegistry, asset, Pano, Text, View, StyleSheet } from 'react-vr';
export default class ReactVRSample extends PureComponent {
render() {
return (
<View>
<Pano source={asset('chess-world.jpg')} />
<Text style={styles.text}>
React VR Sample
</Text>
<Text style={styles.text}>
by @rodrigooler
</Text>
</View>
);
}
}
const styles = StyleSheet.create({
text: {
backgroundColor: '#777879',
fontSize: 0.3,
fontWeight: '400',
layoutOrigin: [0.5, 0.5],
paddingLeft: 0.2,
paddingRight: 0.2,
textAlign: 'center',
textAlignVertical: 'center',
transform: [{ translate: [0, 0, -3] }],
},
});
AppRegistry.registerComponent('ReactVRSample', () => ReactVRSample);