Warning
According to Apple's deprecation of OpenGL support on iOS devices, this starter no longer works on modern iOS devices. Please refer to CodyJasonBennett's comment on this issue.
An Expo starter project for React Three Fiber based on Cody Bennett's R3F React Native Starter. Supports both native and web environments.
$ yarn
$ yarn start
- Supports web environment through React Native for Web
- Automatically imports web or native modules from @react-three/fiber and @react-three/drei packages
- File-based routing with Expo Router
- Uses Metro for bundling instead of Webpack: Metro bundler web support
- Rendering on iOS devices are not supported anymore due to deprecation of OpenGL support from Apple.
- Hence the limits of Three.js's native support, some classes and components are not applicable in the native environment (e.g. OrbitControls). Please find your own solutions.
MIT