Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Issue when running Signature on Expo Web #147

Open
guyzmo opened this issue Oct 22, 2020 · 0 comments
Open

Issue when running Signature on Expo Web #147

guyzmo opened this issue Oct 22, 2020 · 0 comments

Comments

@guyzmo
Copy link

guyzmo commented Oct 22, 2020

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:

    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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant