Open guyzmo opened 3 years ago
When running the Signature module, it crashes on the web:
(index):8 Uncaught (in promise) TypeError: Illegal invocation at WebGL2RenderingContext.o.default.async.t.getContextAttributes
The issue is thrown from that line:
const getAttributes = context.getContextAttributes || (() => ({}));
The fix I found was to ignore context.getContextAttributes when running on web:
context.getContextAttributes
const getAttributes = (Platform.OS === 'web') ? (() => ({})) : context.getContextAttributes || (() => ({}));
It might not be the smartest idea (I have no idea what the context attributes are for), but getting rid of the culprit makes the thing work (up until the next issue).
When running the Signature module, it crashes on the web:
The issue is thrown from that line:
The fix I found was to ignore
context.getContextAttributes
when running on web:It might not be the smartest idea (I have no idea what the context attributes are for), but getting rid of the culprit makes the thing work (up until the next issue).