@react-three/fiber 10.0.0-canary.1b98c17 → 10.0.0-canary.2c50459
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +169 -1217
- package/dist/index.d.cts +102 -770
- package/dist/index.d.mts +102 -770
- package/dist/index.d.ts +102 -770
- package/dist/index.mjs +141 -1188
- package/dist/legacy.cjs +169 -1217
- package/dist/legacy.d.cts +102 -770
- package/dist/legacy.d.mts +102 -770
- package/dist/legacy.d.ts +102 -770
- package/dist/legacy.mjs +141 -1188
- package/dist/webgpu/index.cjs +204 -1234
- package/dist/webgpu/index.d.cts +102 -770
- package/dist/webgpu/index.d.mts +102 -770
- package/dist/webgpu/index.d.ts +102 -770
- package/dist/webgpu/index.mjs +176 -1205
- package/package.json +2 -1
- package/readme.md +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-three/fiber",
|
|
3
|
-
"version": "10.0.0-canary.
|
|
3
|
+
"version": "10.0.0-canary.2c50459",
|
|
4
4
|
"description": "A React renderer for Threejs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@babel/runtime": "^7.28.6",
|
|
60
60
|
"@monogrid/gainmap-js": "^3.4.0",
|
|
61
|
+
"@pmndrs/scheduler": "^0.1.0",
|
|
61
62
|
"dequal": "^2.0.3",
|
|
62
63
|
"its-fine": "^2.0.0",
|
|
63
64
|
"react-use-measure": "^2.1.7",
|
package/readme.md
CHANGED
|
@@ -153,7 +153,7 @@ npm install expo-cli -g
|
|
|
153
153
|
expo init my-app
|
|
154
154
|
cd my-app
|
|
155
155
|
# Install dependencies
|
|
156
|
-
npm install three @react-three/
|
|
156
|
+
npm install three @react-three/native
|
|
157
157
|
# Start
|
|
158
158
|
expo start
|
|
159
159
|
```
|
|
@@ -172,7 +172,7 @@ module.exports = {
|
|
|
172
172
|
|
|
173
173
|
```tsx
|
|
174
174
|
import React, { useRef, useState } from 'react'
|
|
175
|
-
import { Canvas, useFrame } from '@react-three/
|
|
175
|
+
import { Canvas, useFrame } from '@react-three/native'
|
|
176
176
|
function Box(props) {
|
|
177
177
|
const mesh = useRef(null)
|
|
178
178
|
const [hovered, setHover] = useState(false)
|