Skip to content

Commit ce9ac28

Browse files
authored
fix(native) fix crash on rerendering GLView with new arch
1 parent 083a036 commit ce9ac28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/fiber/src/native/Canvas.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function CanvasImpl({
4545
onPointerMissed,
4646
onCreated,
4747
ref,
48+
pointerEvents,
4849
...props
4950
}: CanvasProps) {
5051
// Create a known catalogue of Threejs-native elements
@@ -224,10 +225,11 @@ function CanvasImpl({
224225
}, [canvas])
225226

226227
return (
227-
<_View {...props} ref={viewRef} onLayout={onLayout} style={{ flex: 1, ...style }} {...bind}>
228+
<_View {...props} ref={viewRef} onLayout={onLayout} style={{ flex: 1, ...style }}>
228229
{width > 0 && (
229230
<GLView msaaSamples={antialias ? 4 : 0} onContextCreate={onContextCreate} style={StyleSheet.absoluteFill} />
230231
)}
232+
<_View style={StyleSheet.absoluteFill} pointerEvents={pointerEvents} {...bind} />
231233
</_View>
232234
)
233235
}

0 commit comments

Comments
 (0)