I see, so the main question is how you will get those views in the plugins
The answer is you don't. You keep them in your plugin and manipulate as native views. But your plugin provides functions to set/get positions etc and you get these values in your plugin and position native view accordingly.
Comments
And this is how it does it:
https://github.com/gideros/gideros/blob/master/plugins/native/examples/GiderosProject/ui-android.lua#L73-L128
basically using logicalScale and logicalTranslate ratios
The answer is you don't. You keep them in your plugin and manipulate as native views. But your plugin provides functions to set/get positions etc and you get these values in your plugin and position native view accordingly.
Here is what Ads Plugin does:
https://github.com/gideros/gideros/blob/master/plugins/ads/source/iOS/Plugins/Ads/adsbinder.cpp#L433-L533
It then retrieves x/y positions from native view or sets them to native view.