We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5099784 commit 0d8197aCopy full SHA for 0d8197a
packages/fiber/src/native/Canvas.tsx
@@ -223,17 +223,10 @@ const CanvasImpl = /*#__PURE__*/ React.forwardRef<View, Props>(
223
}, [canvas])
224
225
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>
+ <View {...props} ref={viewRef} onLayout={onLayout} style={{ flex: 1, ...style }} {...bind}>
+ {width > 0 && (
+ <GLView msaaSamples={antialias ? 4 : 0} onContextCreate={onContextCreate} style={StyleSheet.absoluteFill} />
+ )}
237
</View>
238
)
239
},
0 commit comments