Skip to content

Commit 87c5975

Browse files
committed
fix(bottom-navigation,ios): remove warnings
1 parent 26fe4ec commit 87c5975

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/bottom-navigation/index.ios.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ class MDTabBarControllerImpl extends UITabBarController {
9797
}
9898

9999
@NativeClass
100-
class UITabBarControllerDelegateImpl extends NSObject implements UITabBarControllerDelegate {
100+
class BNTabBarControllerDelegateImpl extends NSObject implements UITabBarControllerDelegate {
101101
public static ObjCProtocols = [UITabBarControllerDelegate];
102102

103103
private _owner: WeakRef<BottomNavigation>;
104104

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;
107107
delegate._owner = owner;
108108

109109
return delegate;
@@ -164,13 +164,13 @@ class UITabBarControllerDelegateImpl extends NSObject implements UITabBarControl
164164
}
165165

166166
@NativeClass
167-
class UINavigationControllerDelegateImpl extends NSObject implements UINavigationControllerDelegate {
167+
class BNNavigationControllerDelegateImpl extends NSObject implements UINavigationControllerDelegate {
168168
public static ObjCProtocols = [UINavigationControllerDelegate];
169169

170170
private _owner: WeakRef<BottomNavigation>;
171171

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;
174174
delegate._owner = owner;
175175

176176
return delegate;
@@ -281,8 +281,8 @@ export class BottomNavigation extends TabNavigationBase {
281281
tabsPosition = TabsPosition.Bottom;
282282
public viewController: MDTabBarControllerImpl;
283283
public items: TabContentItem[];
284-
private mDelegate: UITabBarControllerDelegateImpl;
285-
private mMoreNavigationControllerDelegate: UINavigationControllerDelegateImpl;
284+
private mDelegate: BNTabBarControllerDelegateImpl;
285+
private mMoreNavigationControllerDelegate: BNNavigationControllerDelegateImpl;
286286
private mIconsCache = {};
287287
private mSelectedItemColor: Color;
288288
private mUnSelectedItemColor: Color;
@@ -299,8 +299,8 @@ export class BottomNavigation extends TabNavigationBase {
299299

300300
initNativeView() {
301301
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));
304304
if (!this.tabStrip) {
305305
this.viewController.tabBar.hidden = true;
306306
}

0 commit comments

Comments
 (0)