Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Aug 26, 2024
2 parents 4c2b6ba + 3200547 commit b1664f7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
6 changes: 6 additions & 0 deletions packages/fiber/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @react-three/fiber

## 8.17.6

### Patch Changes

- 66c3e9fe: fix(native): don't bind events to GLView

## 8.17.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/fiber/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-three/fiber",
"version": "8.17.5",
"version": "8.17.6",
"description": "A React renderer for Threejs",
"keywords": [
"react",
Expand Down
15 changes: 4 additions & 11 deletions packages/fiber/src/native/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,17 +223,10 @@ const CanvasImpl = /*#__PURE__*/ React.forwardRef<View, Props>(
}, [canvas])

return (
<View ref={viewRef} onLayout={onLayout} style={{ flex: 1, ...style }}>
<View {...props} style={{ flex: 1 }}>
{width > 0 && (
<GLView
{...bind}
msaaSamples={antialias ? 4 : 0}
onContextCreate={onContextCreate}
style={StyleSheet.absoluteFill}
/>
)}
</View>
<View {...props} ref={viewRef} onLayout={onLayout} style={{ flex: 1, ...style }} {...bind}>
{width > 0 && (
<GLView msaaSamples={antialias ? 4 : 0} onContextCreate={onContextCreate} style={StyleSheet.absoluteFill} />
)}
</View>
)
},
Expand Down

0 comments on commit b1664f7

Please sign in to comment.