You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some company prefers Vue.js because of the Vue infrastructure. Some may try the rising Svelte because of the better performance in some use cases. These JS framework could run in most WebView due to the standard Web API. But when it comes to hybrid app, vue-native runs Vue in React so that it could run on iOS and Android. svelte-native depends on NativeScript to build cross-platform app.
I do not mean that React.js is a worse one. I am wondering if it is feasible that RN framework provides, maybe a subset of, DOM-like API to enable other JS framework to run with native framework of RN with minor change. IMO, RN would be more popular and hybrid app developers would benefit from the evolution and ecosystem of RN.
Details
For example, to run a basic Vue demo in RN, we need to import the following JS libraries from react-native:
This discussion was converted from issue #337 on June 10, 2021 08:57.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Introduction
Some company prefers Vue.js because of the Vue infrastructure. Some may try the rising Svelte because of the better performance in some use cases. These JS framework could run in most WebView due to the standard Web API. But when it comes to hybrid app, vue-native runs Vue in React so that it could run on iOS and Android. svelte-native depends on NativeScript to build cross-platform app.
I do not mean that React.js is a worse one. I am wondering if it is feasible that RN framework provides, maybe a subset of, DOM-like API to enable other JS framework to run with native framework of RN with minor change. IMO, RN would be more popular and hybrid app developers would benefit from the evolution and ecosystem of RN.
Details
For example, to run a basic Vue demo in RN, we need to import the following JS libraries from react-native:
Going one step further, we don't have to import any libraries if we could call JSI instead of libraries API.
Discussion points
Beta Was this translation helpful? Give feedback.
All reactions