chore: deprecate createMaterialBottomTabNavigator
#4694
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
createMaterialBottomTabNavigator
deprecationThis merge request drops support for
createMaterialBottomTabNavigator
, reflecting its deprecation since version5.14.0
ofreact-native-paper
.For historical context,
createMaterialBottomTabNavigator
was introduced as part of thereact-native-paper
library due to its ability to animate transitions between tabs. Currently, the same feature, along with many others, is supported in the latest version of@react-navigation/bottom-tabs
.Supporting
createMaterialBottomTabNavigator
for both versions ofreact-navigation
comes with typing issues that will require different annotations.The example and related references to
MaterialBottomTabNavigatorExample
have been deleted to prevent confusion and to encourage migration to the supported solution.createBottomTabNavigator
as replacementThe documentation has been updated to clearly inform users about the deprecation and to recommend using
createBottomTabNavigator
from@react-navigation/bottom-tabs
version7.x
or higher in combination withBottomNavigation.Bar
for a Material Design look.Users can also explore the snack example, which demonstrates how to combine
createBottomTabNavigator
withBottomNavigation.Bar
.Related issue
Fixes: #4601
Fixes: #4572
Test plan