# react-native-vr

> GoogleVR SDK for React native

Latest version **0.0.1** (published 2017-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-vr
pnpm add react-native-vr
yarn add react-native-vr
bun add react-native-vr
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-01-10 |
| First published | 2017-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Estate Team |
| Maintainers | alanhoff |

## Links

- npm: https://www.npmjs.com/package/react-native-vr
- Homepage: https://github.com/estate/react-native-vr
- Issues: https://github.com/estate/react-native-vr/issues
- npm.io page: https://npm.io/package/react-native-vr

## Recent versions

- 0.0.1 (latest) — 2017-01-10

## README

# 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`:

```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.

```javascript
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 }} />
  }
```

---
_Source: https://npm.io/package/react-native-vr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
