Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working demo on Expo.io #25

Closed
DavidGOrtega opened this issue Mar 28, 2018 · 4 comments
Closed

Working demo on Expo.io #25

DavidGOrtega opened this issue Mar 28, 2018 · 4 comments

Comments

@DavidGOrtega
Copy link

Hi,

I have tried the demo on my snack expo without luck.

I have the following error:

Device: (1068:6932) Failed to install module 'react-native-gcanvas': Tried to register two views with the same name RCTGCanvasView

Any ideas?

@hejian1639
Copy link

please try to use below code
var RCTGCanvasView = requireNativeComponent('GCanvasView');

@DavidGOrtega
Copy link
Author

Hi @hejian1639 I have followed your instructions in the expo snack but I have the same issue.

You can ty it here in case that you want to test it personally. I'm using gcanvas.js and react-native-gcanvas from npm.

@DavidGOrtega
Copy link
Author

DavidGOrtega commented Apr 10, 2018

Hi, with the new update (0.0.6) I have tried in expo again and the error is different:

Error: "Invariant Violation: View config not found for name GCanvasView This error is located at: in GCanvasView in t in RCTView in TouchableHighlight in RCTView in App in RCTView in RCTView in t in t in r in RCTView in RCTView in t" in exports@/data/data/host.exp.exponent/files/26.0.0/cached-bundle-experience-%40snack%2FHJ9d63YjM-2143420360-26.0.0:17:309 << createInstance@/data/data/host.exp.exponent/files/26.0.0/cached-bundle-experience-%40snack%2FHJ9d63YjM-2143420360-26.0.0:44:69648 << completeWork@/data/data/host.exp.exponent/files/26.0.0/cached-bundle-experience-%40snack%2FHJ9d63YjM-2143420360-26.0.0:44:47204 << t@/data/data/host.exp.exponent/files/26.0.0/cached-bundle-experience-%40snack%2FHJ9d63YjM-2143420360-26.0.0:44:56029 ...
```

@DavidGOrtega
Copy link
Author

Snack Expo is not building native library.

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

No branches or pull requests

2 participants