That's what I meant by native development in iOS/Android
javascript-to-java and javascript-to-obj-c transpiling
I'm fully aware of the existense of alternatives out there like PhoneGap, Ionic ..etc but I'm envisioning a future where you could write in javascript mostly everything you could do in other languages and transpilers take care of the rest.
Both of those platforms have perfectly reasonable languages available (Java & Swift or ObjC), why would you use JavaScript over them?
Cross platform UI has AFAICT never worked, so you won't be able to reuse code from one platform on another, or is that what you intend to do? In that case you could still transpile from either Java or Swift...
javascript-to-java and javascript-to-obj-c transpiling
I'm fully aware of the existense of alternatives out there like PhoneGap, Ionic ..etc but I'm envisioning a future where you could write in javascript mostly everything you could do in other languages and transpilers take care of the rest.