How to use the react-vr.Animated.Value function in react-vr

To help you get started, we’ve selected a few react-vr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PhantomVRTranslate / PhantomVR / nicktest / gallery / gallery2.js View on Github external
constructor() {
    super();
    this.state = { slideLeft: new Animated.Value(-1024), fadeIn: new Animated.Value(0)};
  }
github Fischaela / vr-image-gallery-reactvr / GdImages.js View on Github external
constructor(props) {
    super();

    this.state = {
      scrollValue: new Animated.Value(0),
      scrolling: false,
      translation: 0,
    };
    this.numberOfImages = 19;
    this.imageWidth = 3.2;
    this.imageGutter = 0.1;
    this.offsetX = (this.numberOfImages * this.imageWidth + this.numberOfImages * this.imageGutter) / 2;
    this.duration = this.numberOfImages * 750;
  }
github nikgraf / webvr-experiments / react-vr / v6-rotating-cube / components / RotatingCube.js View on Github external
constructor(props) {
    super(props);
    this.state = {
      yRotation: new Animated.Value(0),
    };
  }
github PhantomVRTranslate / PhantomVR / NavBarWConditionalRendering / nav_bar / bottom_nav_bar.js View on Github external
constructor(props) {
    super(props);
    this.state = { 
      slideForward: new Animated.Value(-5), 
      slideUp: new Animated.Value(-4),
      fadeIn: new Animated.Value(0),
    };
  }
github PhantomVRTranslate / PhantomVR / final_components / navbar / Navbar.js View on Github external
constructor(props) {
    super(props);
    
    this.state = { 
      slideForward: new Animated.Value(-5), 
      slideUp: new Animated.Value(-4),
      fadeIn: new Animated.Value(0),
    };
  }

react-vr

A framework for building VR applications with React

BSD-3-Clause
Latest version published 7 years ago

Package Health Score

56 / 100
Full package analysis