This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React, { Component } from 'react'; | |
import {StyleSheet} from 'react-native'; | |
import { | |
ViroARScene, | |
ViroText, | |
ViroConstants, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ios/Podfile b/ios/Podfile | |
new file mode 100644 | |
index 0000000..44e11ea | |
--- /dev/null | |
+++ b/ios/Podfile | |
@@ -0,0 +1,6 @@ | |
+platform :ios, '9.3' | |
+target 'ViroSample' do | |
+ use_frameworks! | |
+ pod 'ViroReact', :path => '../node_modules/react-viro/ios/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | |
<application> | |
<meta-data | |
android:name="com.samsung.android.vr.application.mode" | |
android:value="vr_only"/> | |
</application> | |
</manifest> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { | |
ViroScene, | |
ViroImage, | |
ViroButton, | |
} from 'react-viro'; | |
let imageOne = {uri: "http://wiki.magicc.org/images/c/ce/MAGICC_logo_small.jpg"}; | |
let imageTwo = {uri: "http://planetpixelemporium.com/images/fullsize/541moon.jpg"}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { | |
ViroScene, | |
ViroImage, | |
ViroButton, | |
} from 'react-viro'; | |
let imageOne = {uri: "http://wiki.magicc.org/images/c/ce/MAGICC_logo_small.jpg"}; | |
let imageTwo = {uri: "http://planetpixelemporium.com/images/fullsize/541moon.jpg"}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
The below code adds a "start" screen that asks the user if they have a VR headset | |
It's written entirely in React-Native and you would just replace your index.ios|android.js | |
with this file or add this as another js file referenced by your index.ios|android.js files. | |
To use this, simply replace: | |
YOUR_JS_FILE_HERE - replace with your initial scene (ie. js/testScene1.js) | |
YOUR_API_KEY_HERE - replace with your API key | |
*/ |