expo-three-orbit-controls

expo-three-orbit-controls JS library on GitHub expo-three-orbit-controls JS library on npm Download expo-three-orbit-controls JS library

Universal Three.js Orbit Controls with Expo and React

Version 2.0.0 License MIT
expo-three-orbit-controls has no homepage
expo-three-orbit-controls JS library on GitHub
expo-three-orbit-controls JS library on npm
Download expo-three-orbit-controls JS library
Keywords
reactnativegesturesexpothree.jsglgraphicsopengl
No default JS file set by the package author so the URL is guessed. You can always browse all package files to use another one.

expo-three-orbit-controls

supports iOS supports Android supports web

This is a very rough port of Three.js 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

yarn add expo-three-orbit-controls

🚀 Usage

Import into your project:

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

Check out the example for more info.