-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.android.js
34 lines (28 loc) · 883 Bytes
/
index.android.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
/**
* Copyright (c) 2015-present, Viro, 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.
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import {
ViroSceneNavigator,
} from 'react-viro';
var InitialScene = require('./js/HelloWorldScene');
export default class ViroSample extends Component {
render() {
return (
<ViroSceneNavigator apiKey="API_KEY_HERE"
initialScene={{scene: InitialScene}}
/>
);
}
}
AppRegistry.registerComponent('viroGame', () => ViroSample);
// The below line is necessary for use with the TestBed App
AppRegistry.registerComponent('ViroSample', () => ViroSample);