Re:Tempted to Abandon React Native for Native Android
by dbbk on Monday February 06, 2017 @05:05PM
(#13584680)
Yes, it literally works like that. See the docs: http://docs.nativescript.org/cookbook/application
The variable is app.ios / app.android
var button = new Button(...);
// Set the common properties:
button.backgroundColor = ...;
button.text = ...;
if (iOS) {
} else {