This repository was archived by the owner on Dec 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathreact-360.js
135 lines (127 loc) · 2.62 KB
/
react-360.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
/* eslint-disable import/no-commonjs */
// Entry point for the react-360 npm module
const React360 = {
// React Native overrides
get View() {
return require('View');
},
get Image() {
return require('Image');
},
get Text() {
return require('Text');
},
// VR Components and modules
get AmbientLight() {
return require('AmbientLight');
},
get Box() {
return require('Box');
},
get LiveEnvCamera() {
return require('LiveEnvCamera');
},
get Cylinder() {
return require('Cylinder');
},
get CylindricalPanel() {
return require('CylindricalPanel');
},
get QuadPanel() {
return require('QuadPanel');
},
get Plane() {
return require('Plane');
},
get Sphere() {
return require('Sphere');
},
get DirectionalLight() {
return require('DirectionalLight');
},
get PointLight() {
return require('PointLight');
},
get SpotLight() {
return require('SpotLight');
},
get Model() {
return require('Model');
},
get Pano() {
return require('Pano');
},
get Prefetch() {
return require('Prefetch');
},
get Scene() {
return require('Scene');
},
get Sound() {
return require('Sound');
},
get Video() {
return require('Video');
},
get VideoPano() {
return require('VideoPano');
},
get VideoControl() {
return require('VideoControl');
},
get MediaPlayerState() {
return require('MediaPlayerState');
},
get VrAnimated() {
return require('VrAnimated');
},
get VrButton() {
return require('VrButton');
},
get VrHeadModel() {
return require('VrHeadModel');
},
get VrSoundEffects() {
return require('VrSoundEffects');
},
get Environment() {
return require('Environment');
},
// React VR-specific utilities
get asset() {
return require('asset');
},
get staticAssetURL() {
return require('staticAssetURL').default;
},
get texture() {
return require('texture');
},
// Direct access to RN properties
get Animated() {
return require('Animated');
},
get AppRegistry() {
return require('AppRegistry');
},
get AsyncStorage() {
return require('AsyncStorage');
},
get NativeModules() {
return require('NativeModules');
},
get StyleSheet() {
return require('StyleSheet');
},
};
module.exports = React360;