ui-material-components icon indicating copy to clipboard operation
ui-material-components copied to clipboard

[Bottom Navigation] Confusing Duplicate Bottom Navigation Components and Broken Package

Open JumpLink opened this issue 6 months ago • 2 comments

I'm new to NativeScript and wanted to start with Material Design's BottomNavigation component. I encountered several issues that I believe need to be addressed:

  1. Package Confusion:

    • There are two similar packages available:
      • @nativescript-community/ui-material-bottom-navigation
      • @nativescript-community/ui-material-bottomnavigationbar This creates confusion for new users like myself, as it's unclear which one should be used.
  2. Broken Package:

    • The @nativescript-community/ui-material-bottom-navigation package appears to be broken:
      • All TypeScript files have incorrect prefixes (using index instead of bottomnavigation)
      • After manually renaming the files (e.g., from index.d.ts to bottomnavigation.d.ts), it partially worked
      • The other package (@nativescript-community/ui-material-bottomnavigationbar) works better

This issue is potentially related to #468, as it might be caused by the same underlying problems.

Suggested Actions:

  1. Clarify which package is the recommended one
  2. Either fix or deprecate the broken package
  3. Update documentation to prevent confusion for new users
  4. Consider merging the functionality into a single, well-maintained package

Environment:

  • NativeScript version: 8.9.2
  • Platform: Fedora Linux 41

JumpLink avatar Apr 14 '25 14:04 JumpLink