Skip to content

Instantly share code, notes, and snippets.

View achuvm's full-sized avatar

achuvm

View GitHub Profile
'use strict';
import React, { Component } from 'react';
import {StyleSheet} from 'react-native';
import {
ViroARScene,
ViroText,
ViroConstants,
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/'
<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>
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"};
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"};
/**
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
*/