Skip to content

Conversation

@FranckG28
Copy link

Why

resolves #2547
CameraControls doesn't work on Native platform. It require an HtmlElement to work.

What

  • Exported CameraControls in /web instead of /core
  • Added Dom-only badge on doc
  • Remove an unused import on CameraControls component

Checklist

  • Documentation updated (example)
  • Ready to be merged

The goal is to avoid making user waste their time thinking that they can use CameraControls on React Native.

@vercel
Copy link

vercel bot commented Sep 26, 2025

@FranckG28 is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 26, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@DennisSmolek DennisSmolek self-assigned this Nov 13, 2025
@DennisSmolek
Copy link
Member

The new Export plan will be for native users to import all components from the native endpoint. If its not in native, it doesnt exist.

So in this case:

import { CameraControls } from '@react-three/drei/native;

Would fail.

Native will need a lot of love later in the v11 work though so this may not happen day 1 of alpha but for sure when released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CameraControls component incorrectly marked as x-platform

3 participants