Skip to content

CameraControls component incorrectly marked as x-platform #2547

@FranckG28

Description

@FranckG28

Problem description:

CameraControls component is not marked as Dom only in the documentation.
Moreover, it can be imported from @react-three/drei/native.
This suggests that this component can work with React Native.
Image

Looking at CameraControls codebase, it's seems clear that it can only work on the DOM (or i'm really missing something)

Image

Suggested solution:

  • Only export it for web (not in /core)
  • Mark the component as Dom only in the documentation

I would love to see this component working on Native, but it doesn't seems possible as is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions