React VR lets you build VR apps using only JavaScript. It uses the same design as React, letting you compose a rich VR world and UI from declarative components.
import React from 'react'; import {AppRegistry, Pano, Text, View} from 'react-vr'; class WelcomeToVR extends React.Component{render(){return(<View><Pano source={asset('chess-world.jpg')}/><Text style={{ fontSize:0.8, layoutOrigin:[0.5,0.5], transform:[{translate:[0,0,-3]}],}}> hello</Text></View>);}}; AppRegistry.registerComponent('WelcomeToVR',()=> WelcomeToVR);