That would be ideal. But even if you got to 80% or 90% commonality I think that would be valuable. Some platform specific exceptions are likely. In my opinion, if the widgets approach has API compatibility but not look and feel compatibility, then it's no better than using the DOM because you'll have to do so much styling you won't be able to reuse much UI code from other platform implementations.