Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 618 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 618 Bytes

react-vr-walk

Walk around your ReactVr app with WASD!

Modification: Use E and R to move up and down!

Forked from: https://github.com/apoeco/react-vr-walk

Example:

import React from 'react';
import {
  AppRegistry,
  Text,
  View,
} from 'react-vr';
import Walk from 'react-vr-walk'

class App extends React.Component {
  render() {
    return(
      <Walk panoSource={asset('chess-world.jpg')}
            speed={1}>
        <View style={{flex: 1, flexDirection: 'row'}}>
          <Text>Hey!</Text>
        </View>
      </Walk>
    )
  }
}
AppRegistry.registerComponent('App', () => App);