react-xr
react-xr copied to clipboard
iOS support?
Note: I'm using code example from README.
Critical things
-
There are some critical issues in current version, connected to ability to run AR sessions on android devices event with support available from "can i use" website...
-
There are old pull requests in current repository which is not merged
-
There are very old (almost 1-2 year) issues without answers or still open
-
No workaround for ios devices
Possible solutions
- add info about devices support.
Importance
This is the only react-three-fiber ecosystem webxr tool, and it looks very strange that this repository exists being partially working solution, without following it's original functional target?
The only actionable thing I can see here is adding a note about Apple's continued refusal to implement WebXR on iOS. I'm not going to entertain the rest.
Okey, good. And what about android, do we have any demo for android AR?
We don't have a posted demo yet for Android AR, but it would use ARButton
as per the getting started example https://github.com/pmndrs/react-xr#getting-started.
import { ARButton, XR } from '@react-three/xr'
import { Canvas } from '@react-three/fiber'
function App() {
return (
<>
<ARButton />
<Canvas>
<XR>
<mesh>
<boxGeometry />
<meshBasicMaterial color="blue" />
</mesh>
</XR>
</Canvas>
</>
)
}