Open Nico924 opened 5 years ago
I created a new project using SDK 31, and tried out the Sketch sample and got the same errors.
same here does not work on ejected expo project with SDK 32
Same problem here, it gives a warning and when I try to draw, it crashes.
[Unhandled promise rejection: TypeError: gl.createBuffer is not a function. (In 'gl.createBuffer()', 'gl.createBuffer' is undefined)]
the strange thing is that it fallbacks to CanvasRenderer while it gets a gl-context from react-native can Expo2DContext work with a CanvasRenderer instead of WebGLContext?
Try this for the gl.createBuffer issue: I added "@expo/browser-polyfill": "0.0.1-alpha.3" to my node modules and made sure that expo-pixi is on version 1.0.1
Use npm ls @expo/browser-polyfill and npm ls expo-pixi to check the versions
@lanklaas Thank you so much. You saved my life.
This no longer works with latest version of Expo. I believe this library is the current solution: https://docs.expo.io/versions/latest/sdk/captureRef/
I've tried to run the Sketch example with Expo 32.0.0
However when I start to draw on the rendered view form the example, I got this error
And here are my package
Thank you in advance for your help