pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.5k stars 293 forks source link

fix: update drei imports #65

Closed joshuaellis closed 3 years ago

joshuaellis commented 3 years ago

From v3 (currently in beta) import { component } from '@react-three/drei/component' will no longer work because of the refactoring done to work with react-native.

importing items from @react-three/drei is already supported in the most recent version.

Or we can leave it for people to fix themselves, depends what you'd prefer.

gsimone commented 3 years ago

@drcmda tree shaking should work fine in drei now, so it could be no big deal importing from index 🤷