Hi everyone, I am wondering if someone could provide clarification on the vision for UI code reuse for Web/WASM.
Am I right in my understanding that the target of Web/WASM will reuse my desktop/mobile UI code and that I do not have to create a separate UI for the web using DOM constructs?
04/19/2023, 4:23 PM
That is the idea, compiling all the compose kotlin code to wasm, then, that binary wasm would call into the skia bindings that come embedded in chromium. In theory it should produce the same graphics that you see on mobile and desktop.
As long as you have good adaptive components that handle big screen sizes and adjust to smaller ones, it should be 💯 percent reusable
Now, imho, it will take at least 2/3 years to be fully ready. Talking about bullet proof garbage collection plus full platform system calls integration.
So in the meantime compose-html is the best option, because compose-web is not ready either.