expo / expo-pixi

Tools for using pixi.js in Expo
MIT License
304 stars 119 forks source link

GLView doesn't show anything #157

Open jamesqm opened 3 years ago

jamesqm commented 3 years ago

Hi guys, I'm trying to use PIXI.Sketch but it doesn't show anything at all. Here is the code:

<GLView style={{ flex: 1, backgroundColor: "white" }} onContextCreate={async context => { const app = new PIXI.Application({ context, backgroundColor: "ff0000", width: 200, height: 200 }); const sketch = new PIXI.Sketch({context, strokeColor: "ffffff", strokeWidth: 5,strokeAlpha: 1}); app.stage.addChild(sketch); }} />

How do you use PIXI.Sketch?