Rewrite to native code (C++/QML/Javascript)