2 ms·
I wouldn’t say it’s more native, however, NativeScript gives you access to the entire API space of the target platform in JavaScript versus React Native which d
by jkulubya 9y ago
I wouldn’t say it’s more native, however, NativeScript gives you access to the entire API space of the target platform in JavaScript versus React Native which doesn’t. What this means is that if something doesn’t exist in NS land, you can open the Android or iOS docs and call the required api from JavaScript like so
var context = ...;
var button = new android.widget.Button(context);
button.setText("My Button");
To achieve the same in RN, you have to drop down into Java/Swift/Obj-C and link back to your JavaScript. Same result, different means.
See https://docs.nativescript.org/core-concepts/accessing-native-apis-with-javascript https://docs.nativescript.org/core-concepts/accessing-native...