@@ -126,7 +126,7 @@ function putNativeView(context: Object, view: ViewBase): void {
126126 list . push ( new WeakRef ( view . nativeView ) ) ;
127127}
128128
129- export class ViewBase extends Observable implements ViewBaseDefinition {
129+ export abstract class ViewBase extends Observable implements ViewBaseDefinition {
130130 public static loadedEvent = "loaded" ;
131131 public static unloadedEvent = "unloaded" ;
132132
@@ -588,19 +588,19 @@ export class ViewBase extends Observable implements ViewBaseDefinition {
588588 }
589589 }
590590
591- public _createNativeView ( ) : Object {
591+ public createNativeView ( ) : Object {
592592 return undefined ;
593593 }
594594
595- public _disposeNativeView ( ) {
595+ public disposeNativeView ( ) {
596596 //
597597 }
598598
599- public _initNativeView ( ) : void {
599+ public initNativeView ( ) : void {
600600 //
601601 }
602602
603- public _resetNativeView ( ) : void {
603+ public resetNativeView ( ) : void {
604604 if ( this . nativeView && this . recycleNativeView && isAndroid ) {
605605 resetNativeView ( this ) ;
606606 }
@@ -627,7 +627,7 @@ export class ViewBase extends Observable implements ViewBaseDefinition {
627627 }
628628
629629 if ( ! nativeView ) {
630- nativeView = < android . view . View > this . _createNativeView ( ) ;
630+ nativeView = < android . view . View > this . createNativeView ( ) ;
631631 }
632632
633633 this . _androidView = this . nativeView = nativeView ;
@@ -659,14 +659,14 @@ export class ViewBase extends Observable implements ViewBaseDefinition {
659659 }
660660 } else {
661661 // TODO: Implement _createNativeView for iOS
662- this . _createNativeView ( ) ;
662+ this . createNativeView ( ) ;
663663 if ( ! currentNativeView ) {
664664 console . log ( `${ this . typeName } doesnt have NativeView !!!!! =================` ) ;
665665 }
666666 // this.nativeView = this._iosView = (<any>this)._nativeView;
667667 }
668668
669- this . _initNativeView ( ) ;
669+ this . initNativeView ( ) ;
670670
671671 if ( this . parent ) {
672672 let nativeIndex = this . parent . _childIndexToNativeChildIndex ( atIndex ) ;
@@ -695,7 +695,7 @@ export class ViewBase extends Observable implements ViewBaseDefinition {
695695 traceWrite ( `${ this } ._tearDownUI(${ force } )` , traceCategories . VisualTreeEvents ) ;
696696 }
697697
698- this . _resetNativeView ( ) ;
698+ this . resetNativeView ( ) ;
699699
700700 this . eachChild ( ( child ) => {
701701 child . _tearDownUI ( force ) ;
@@ -714,7 +714,7 @@ export class ViewBase extends Observable implements ViewBaseDefinition {
714714 }
715715 }
716716
717- this . _disposeNativeView ( ) ;
717+ this . disposeNativeView ( ) ;
718718
719719 this . nativeView = null ;
720720 this . _androidView = null ;
0 commit comments