Skip to content

πŸŽ₯ Three.js Orbit Controls (Camera) bridged into React Native

License

Notifications You must be signed in to change notification settings

EvanBacon/expo-three-orbit-controls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1a67021 Β· Sep 6, 2021

History

21 Commits
Jun 4, 2020
Jun 4, 2020
Jun 4, 2020
May 17, 2021
Jun 4, 2020
Jun 4, 2020
Jun 4, 2020
Jun 4, 2020
Jun 4, 2020
Jun 4, 2020
Jun 4, 2020
Jun 4, 2020
May 17, 2021
Jun 4, 2020
Jun 4, 2020

Repository files navigation

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.