Issue implementing WebView in a pluggable widget

0
Hi, I ‘m making a simple pluggable widget and for the moment I followed the ‘Build a Text Box Pluggable Widget: Part 1‘ (https://docs.mendix.com/howto/extensibility/create-a-pluggable-widget-one#1-introduction) Now, I’m trying to use WebView for the moment I did : $ npm install --save react-native-webview $ react-native link react-native-webview My IDE manage to find the library and it finds no errors, but when I run $ npm run dev I got some errors telling me it’s not able to find the WebView components and that’s understandable because it’s looking at CustomWidgets/<WidgetName>/node_modules/react-native/Libraries/react-native/react-native-implementation.js  I think it should be looking at CustomWidgets/<WidgetName>/node_modules/react-native-webview/* Do you have some ideas to make it works ? Thanks in advance for your help.
asked
4 answers
1

Check out the webview widget already packaged into the Native Mobile Resources module.

Here’s the code on GitHub: https://github.com/mendix/native-mobile-resources/tree/master/packages/web-view

answered
2

Did you checked the Tutorial in the Acadademy Area?

answered
1

I think it was this one here https://gettingstarted.mendixcloud.com/link/path/45

answered
1

Hi Camille !

We are working on a documentation which covers “Creating Custom Pluggable Widget for Native”. Hope the documentation will clear some problems which you might have.

 

Thanks
Mehmet

answered