Skip to content

Problem with the "BottomNavigation.Bar" component example (route.title) #4453

@Tarac21

Description

@Tarac21

Current behaviour

The title in route.title is displayed in red to indicate that there is an error.

TS2339: Property title does not exist on type NavigationRoute<ParamListBase, string>

Suppress with @ts-ignore | More actions...

title?: string | undefined

react-native-paper

Expected behaviour

No error message is displayed.

How to reproduce?

Redo the example from https://callstack.github.io/react-native-paper/docs/components/BottomNavigation/BottomNavigationBar.

Preview

What have you tried so far?

Using @ts-ignore does not change anything.

Your Environment

software version
IntelliJ IDEA 2024.1.4 (Ultimate Edition)
android 14
react-native 0.74.3
react-native-paper ^5.12.3
node 20.15.0
npm 10.8.2
expo sdk ?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions