-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
48 lines (43 loc) · 906 Bytes
/
App.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
import React, {useState} from 'react';
import {StyleSheet} from 'react-native';
import {
ViroTrackingStateConstants,
ViroVRSceneNavigator,
ViroARSceneNavigator,
ViroSceneNavigator,
} from '@viro-community/react-viro';
import FirstScene from './FirstScene';
var vrScenes = {
'FirstScene': require('./FirstScene'),
}
// VR SECTION
export default (props) => {
return (
<ViroVRSceneNavigator
{...props}
initialScene={{
scene: require('./FirstScene'),
}}
/>
);
};
// AR SECTION
// export default () => {
// return (
// <ViroARSceneNavigator
// initialScene={{
// scene: require('./FirstScene'),
// }}
// />
// );
// };
var styles = StyleSheet.create({
f1: {flex: 1},
helloWorldTextStyle: {
fontFamily: 'Arial',
fontSize: 30,
color: '#ffffff',
textAlignVertical: 'center',
textAlign: 'center',
},
});