-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
60 lines (56 loc) · 1.68 KB
/
index.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
56
57
58
59
60
import React from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
} from 'react-360';
import Screen from './components/Screen';
import LoadingScreen from './components/LoadingScreen';
import Pokemon from './components/Pokemon';
import PokeBall from './components/PokeBall';
import World from './components/World';
AppRegistry.registerComponent('LoadingScreen', () => LoadingScreen);
AppRegistry.registerComponent('Screen', () => Screen);
AppRegistry.registerComponent('PokeBall1', () => PokeBall);
AppRegistry.registerComponent('PokeBall2', () => PokeBall);
AppRegistry.registerComponent('PokeBall3', () => PokeBall);
AppRegistry.registerComponent('PokeBall4', () => PokeBall);
AppRegistry.registerComponent('Pikachu', () => Pokemon);
AppRegistry.registerComponent('Cubone', () => Pokemon);
AppRegistry.registerComponent('Charmander', () => Pokemon);
AppRegistry.registerComponent('Haunter', () => Pokemon);
AppRegistry.registerComponent('World', () => World);
export default class pokemon_vr extends React.Component {
render() {
return (
<View style={styles.panel}>
<View style={styles.greetingBox}>
<Text style={styles.greeting}>
Welcome to React 360
</Text>
</View>
</View>
);
}
};
const styles = StyleSheet.create({
panel: {
// Fill the entire surface
width: 1000,
height: 600,
backgroundColor: 'rgba(255, 255, 255, 0.4)',
justifyContent: 'center',
alignItems: 'center',
},
greetingBox: {
padding: 20,
backgroundColor: '#000000',
borderColor: '#639dda',
borderWidth: 2,
},
greeting: {
fontSize: 30,
},
});
AppRegistry.registerComponent('pokemon_vr', () => pokemon_vr);