Closed sifex closed 5 years ago
Hi @sifex,
yes, a major release is coming to change the component name to BottomNavigationBar
to avoid conflicts with the implementation made by the {N} team.
I'm working on that right now, hopefully, will be released tomorrow.
A quick fix will be, don't import the NativescriptBottomNavigationModule
and put this code in your app.module.ts
import { registerElement } from 'nativescript-angular/element-registry';
import { BottomNavigation, BottomNavigationTab } from 'nativescript-bottom-navigation';
registerElement('BottomNavigationBar', () => BottomNavigation);
registerElement('BottomNavigationTab', () => BottomNavigationTab);
❤️ Yea got that sorted, just wanted to give you a heads up :smile:
@henrychavez So, how is this going to wrok with VueJS?
@ugommirikwe for VueJs i used
import { BottomNavigation, BottomNavigationTab } from 'nativescript-bottom-navigation';
Vue.registerElement('BottomNavigationBar', () => BottomNavigation);
Vue.registerElement('BottomNavigationTab', () => BottomNavigationTab);
on my main.ts file
just dont forget to use BottomNavigationBar
in your code instead of BottomNavigation
Thanks. 👍🏾
Which platform(s) does your issue occur on?
What type of device?
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible. Describe the steps to reproduce the behavior:
registerElement
name as "BottomNavigation".Reference: