@@ -97,13 +97,13 @@ class MDTabBarControllerImpl extends UITabBarController {
97
97
}
98
98
99
99
@NativeClass
100
- class UITabBarControllerDelegateImpl extends NSObject implements UITabBarControllerDelegate {
100
+ class BNTabBarControllerDelegateImpl extends NSObject implements UITabBarControllerDelegate {
101
101
public static ObjCProtocols = [ UITabBarControllerDelegate ] ;
102
102
103
103
private _owner : WeakRef < BottomNavigation > ;
104
104
105
- public static initWithOwner ( owner : WeakRef < BottomNavigation > ) : UITabBarControllerDelegateImpl {
106
- const delegate = UITabBarControllerDelegateImpl . alloc ( ) . init ( ) as UITabBarControllerDelegateImpl ;
105
+ public static initWithOwner ( owner : WeakRef < BottomNavigation > ) : BNTabBarControllerDelegateImpl {
106
+ const delegate = BNTabBarControllerDelegateImpl . alloc ( ) . init ( ) as BNTabBarControllerDelegateImpl ;
107
107
delegate . _owner = owner ;
108
108
109
109
return delegate ;
@@ -164,13 +164,13 @@ class UITabBarControllerDelegateImpl extends NSObject implements UITabBarControl
164
164
}
165
165
166
166
@NativeClass
167
- class UINavigationControllerDelegateImpl extends NSObject implements UINavigationControllerDelegate {
167
+ class BNNavigationControllerDelegateImpl extends NSObject implements UINavigationControllerDelegate {
168
168
public static ObjCProtocols = [ UINavigationControllerDelegate ] ;
169
169
170
170
private _owner : WeakRef < BottomNavigation > ;
171
171
172
- public static initWithOwner ( owner : WeakRef < BottomNavigation > ) : UINavigationControllerDelegateImpl {
173
- const delegate = UINavigationControllerDelegateImpl . alloc ( ) . init ( ) as UINavigationControllerDelegateImpl ;
172
+ public static initWithOwner ( owner : WeakRef < BottomNavigation > ) : BNNavigationControllerDelegateImpl {
173
+ const delegate = BNNavigationControllerDelegateImpl . alloc ( ) . init ( ) as BNNavigationControllerDelegateImpl ;
174
174
delegate . _owner = owner ;
175
175
176
176
return delegate ;
@@ -281,8 +281,8 @@ export class BottomNavigation extends TabNavigationBase {
281
281
tabsPosition = TabsPosition . Bottom ;
282
282
public viewController : MDTabBarControllerImpl ;
283
283
public items : TabContentItem [ ] ;
284
- private mDelegate : UITabBarControllerDelegateImpl ;
285
- private mMoreNavigationControllerDelegate : UINavigationControllerDelegateImpl ;
284
+ private mDelegate : BNTabBarControllerDelegateImpl ;
285
+ private mMoreNavigationControllerDelegate : BNNavigationControllerDelegateImpl ;
286
286
private mIconsCache = { } ;
287
287
private mSelectedItemColor : Color ;
288
288
private mUnSelectedItemColor : Color ;
@@ -299,8 +299,8 @@ export class BottomNavigation extends TabNavigationBase {
299
299
300
300
initNativeView ( ) {
301
301
super . initNativeView ( ) ;
302
- this . mDelegate = UITabBarControllerDelegateImpl . initWithOwner ( new WeakRef ( this ) ) ;
303
- this . mMoreNavigationControllerDelegate = UINavigationControllerDelegateImpl . initWithOwner ( new WeakRef ( this ) ) ;
302
+ this . mDelegate = BNTabBarControllerDelegateImpl . initWithOwner ( new WeakRef ( this ) ) ;
303
+ this . mMoreNavigationControllerDelegate = BNNavigationControllerDelegateImpl . initWithOwner ( new WeakRef ( this ) ) ;
304
304
if ( ! this . tabStrip ) {
305
305
this . viewController . tabBar . hidden = true ;
306
306
}
0 commit comments