Skip to content

Commit 0d8197a

Browse files
fix(native): don't bind events to GLView (#3341)
1 parent 5099784 commit 0d8197a

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

packages/fiber/src/native/Canvas.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -223,17 +223,10 @@ const CanvasImpl = /*#__PURE__*/ React.forwardRef<View, Props>(
223223
}, [canvas])
224224

225225
return (
226-
<View ref={viewRef} onLayout={onLayout} style={{ flex: 1, ...style }}>
227-
<View {...props} style={{ flex: 1 }}>
228-
{width > 0 && (
229-
<GLView
230-
{...bind}
231-
msaaSamples={antialias ? 4 : 0}
232-
onContextCreate={onContextCreate}
233-
style={StyleSheet.absoluteFill}
234-
/>
235-
)}
236-
</View>
226+
<View {...props} ref={viewRef} onLayout={onLayout} style={{ flex: 1, ...style }} {...bind}>
227+
{width > 0 && (
228+
<GLView msaaSamples={antialias ? 4 : 0} onContextCreate={onContextCreate} style={StyleSheet.absoluteFill} />
229+
)}
237230
</View>
238231
)
239232
},

0 commit comments

Comments
 (0)