6

First, sorry for my bad english.

Well...

I'm working on a UI Lib using stencilJs and in another project I'm using react-native-web to make easier my web and mobile dev... But my custom component that I've created in stencilJS project only works on web, in mobile version shows this error:

Invariant Violation: View config not found for name My-rating.

And my question is... Theres a way that I can use my StencilJS components in React Native?

Thx.

  • Any luck? How'd it go? – Thomas G Henry LLC Aug 01 '19 at 12:26
  • Web components only work in a browser/web view because they are a combination of html, css and js. So you would need to wrap them in a web view or use sth like https://github.com/archriss/react-native-render-html. But I'm not sure what's the point of using RN then vs sth like Cordova or Capacitor. Unless you want to mix it with other RN components. – Simon Hänisch Jul 17 '20 at 10:29

0 Answers0