svelte-native icon indicating copy to clipboard operation
svelte-native copied to clipboard

Hybrid Capability

Open pongstylin opened this issue 4 years ago • 1 comments

I am looking to create a PWA project, but would like to write it in such a way that I can port it over to native apps without a lot of work. I understand this is relatively easy to do if the solution includes webviews. But I would rather avoid the performance penalty. And, I would like to use Svelte. This seems like the best/only option. But I saw this post:

https://github.com/halfnelson/svelte-native/issues/144

His use case is not the same as mine, however. I expect a web app written for the web to not be easy to port without webviews. But how feasible would it be to architect the app such that most code is shared while rendering web equivalents of native components when targeting the web? Is this the right solution for that or is there something else that meets my requirements (Hybrid app using Svelte without webviews)?

P.S. I also plan to use PIXI.js / WebGL if that is a factor in your recommendations.

pongstylin avatar Aug 22 '21 22:08 pongstylin

Anyways all layout components are different between web and native platforms. So yo can reuse only business logic: Model and partially ViewModel in MVVM pattern.

uzarsalan avatar Oct 06 '21 17:10 uzarsalan