mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor(core-modules): implement createNativeView and initNativeView for all components
refactor(core-modules): implement createNativeView and initNativeView for all components
This commit is contained in:
committed by
Martin Yankov
parent
71107533bb
commit
46705ee332
@@ -4,11 +4,11 @@ export * from "./activity-indicator-common";
|
||||
|
||||
export class ActivityIndicator extends ActivityIndicatorBase {
|
||||
nativeViewProtected: UIActivityIndicatorView;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.nativeViewProtected = UIActivityIndicatorView.alloc().initWithActivityIndicatorStyle(UIActivityIndicatorViewStyle.Gray);
|
||||
this.nativeViewProtected.hidesWhenStopped = true;
|
||||
|
||||
createNativeView() {
|
||||
const view = UIActivityIndicatorView.alloc().initWithActivityIndicatorStyle(UIActivityIndicatorViewStyle.Gray);
|
||||
view.hidesWhenStopped = true;
|
||||
return view;
|
||||
}
|
||||
|
||||
get ios(): UIActivityIndicatorView {
|
||||
|
||||
Reference in New Issue
Block a user