Nativescript how to resize activity indicator (iOS)

Is it possible to resize the activity indicator in Nativescript iOS?

Also the color.

+3


source to share


3 answers


Of course, I could do something like this in my main view:



if (frameModule.topmost().ios) {
    var indicator = page.getViewById("indicator");
    indicator.ios.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.UIActivityIndicatorViewStyleWhiteLarge;
    indicator.ios.color = new colorModule.Color("#FFFFFF").ios;
}

      

+5


source


I have this in mine app.css

, which seems to do the trick for the color (I didn't need to resize yet):



ActivityIndicator {
  color: #4CC55B;
}

      

0


source


How to import UIActivityIndicatorViewStyle ?? I cannot find it in any of the TNS libraries.

0


source







All Articles