New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-vr

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-vr

GoogleVR SDK for React native

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

React Native Virtual Reality

Setup

Install the module using npm i -S react-native-vr and link it using react-native link react-native-vr. Also make sure you have the following lines in your android/build.gradle:

allprojects {
    repositories {
        ...
        // IMPORTANT: Make sure you have the following line
        flatDir { dirs "$rootDir/../node_modules/react-native-vr/android/libs" }
    }
}

Usage

The following example is everything you can do for now.

import Vr from 'react-native-vr'

...

  render() {
    return <Vr
      src={{
        uri: 'https://my-awesome-3d-video.com',
        type: Vr.constants.TYPE.MONO,
        format: Vr.constants.FORMAT.DEFAULT
      }}
      displayMode={Vr.constants.DISPLAY_MODE.EMBEDDED}
      paused={false}
      style={{ height: 100, width: 100 }} />
  }

FAQs

Package last updated on 10 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts