Is there any better solution? The problem is that I have a mapview and a sidebar menu and the nativeviewhost is causing the map to cover the sidebar.
we usually prefer seeing some code along with conceptual questions, because otherwise it’s nearly impossible to understand what have you tried to do and how you have done that.
var someLibrary = require("Modules/someLibrary.js");
Now the thing you need to keep in mind is that you may not include model JS files in UX, and you may not require viewmodel JS files in other JS files. If you want to understand why, you should spend some time here, then here and then of course here.