# expo-three-orbit-controls

> Universal Three.js Orbit Controls with Expo and React

Latest version **2.0.0** (published 2020-06-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install expo-three-orbit-controls
pnpm add expo-three-orbit-controls
yarn add expo-three-orbit-controls
bun add expo-three-orbit-controls
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-06-04 |
| First published | 2017-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 105.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 80 |
| Author | Evan Bacon |
| Maintainers | evanbacon |
| Keywords | react, native, gestures, expo, three.js, gl, graphics, opengl |

## Links

- npm: https://www.npmjs.com/package/expo-three-orbit-controls
- Repository: https://github.com/EvanBacon/expo-three-orbit-controls
- Issues: https://github.com/EvanBacon/expo-three-orbit-controls/issues
- npm.io page: https://npm.io/package/expo-three-orbit-controls

## Dependencies (1)

- [react-native-web-hooks](https://npm.io/package/react-native-web-hooks.md) ^3.0.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2020-06-04
- 1.0.1 — 2017-06-06
- 1.0.0 — 2017-06-06

## README

# expo-three-orbit-controls

[![supports iOS](https://img.shields.io/badge/iOS-4630EB.svg?style=flat-square&logo=APPLE&labelColor=999999&logoColor=fff)](https://itunes.apple.com/app/apple-store/id982107779)
[![supports Android](https://img.shields.io/badge/Android-4630EB.svg?style=flat-square&logo=ANDROID&labelColor=A4C639&logoColor=fff)](https://play.google.com/store/apps/details?id=host.exp.exponent&referrer=expo-three-orbit-controls)
[![supports web](https://img.shields.io/badge/web-4630EB.svg?style=flat-square&logo=GOOGLE-CHROME&labelColor=4285F4&logoColor=fff)](https://docs.expo.io/workflow/web/)

This is a very rough port of [Three.js `OrbitControls`](https://threejs.org/docs/#examples/en/controls/OrbitControls) for universal React apps with Expo.

- Fully written in TypeScript because it's the best! 🌟
- Internally this uses a basic PanResponder for gestures. PRs to migrate PanResponder to React Native Gesture Handler are very welcome.
- On web, two finger gestures aren't currently implemented.
- On native, the camera may jump when panning + zooming ends due to issues with React Native `PanResponder`.

## ☁️ Installation

```sh
yarn add expo-three-orbit-controls
```

## 🚀 Usage

Import into your project:

```tsx
import OrbitControlsView from 'expo-three-orbit-controls';
```

Check out the [example](./example/App.tsx) for more info.

---
_Source: https://npm.io/package/expo-three-orbit-controls · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
