Repository navigation
Release 6.0.0-alpha.5 #5339
Doberjohn
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
React Native Paper 6.0.0-alpha.5 is on npm under
alpha:It is a prerelease for trying the upgrade before the beta, and APIs can still change. Start with the migration guide and the 6.x getting started guide. 6.x needs React 19 and the New Architecture. With npm, install the Reanimated and Worklets versions Getting Started lists for your React Native version first.
What changed since alpha.4 is in the release notes below: seven breaking changes (
NavigationBarreplacesBottomNavigation; one Material 3RadioButtonon every platform;List.ItemandList.Accordionon Material 3; a 1dpDividerwithstartInset;Avatar,BannerandDataTableon Material 3 tokens; theMenuandBannerbackgrounds; andAppbar.BackAction's icon), aDrawerthat follows the Material 3 navigation drawer, screen reader and keyboard support forFAB.Menu, Material 3 motion forBadge,Checkbox,TextInputandSegmentedButtons, and fixes for two crashes with the Android dynamic themes.Known issues are listed in the release notes below.
Please reply here with what you find, or open an issue with
6.0.0-alpha.5in the title, your platform and your React Native and Expo versions. Missing or wrong migration notes count too. The plan and the merge order are in #5150.6.0.0-alpha.5 is the fifth prerelease of React Native Paper 6, for trying the upgrade before the beta. Install it with
npm install react-native-paper@alpha. APIs can still change. With npm, install the Reanimated and Worklets versions Getting Started lists for your React Native version first.Migration guide: https://oss.callstack.com/react-native-paper/6.x/docs/guides/migration
Breaking since 6.0.0-alpha.4:
Avatar.IconandAvatar.Textdefault toprimaryContainerwithonPrimaryContainercontent and no longer derive the content color from a custombackgroundColor, so pass a matchingcolor, andAvatar.Text,DataTable.Title,DataTable.CellandDataTable.Paginationread thetitleMedium,labelMedium,bodyMediumandbodySmalltheme fonts instead oftheme.fonts.default. (#5016, guide: Avatar, DataTable)RadioButton.AndroidandRadioButton.IOSare removed withRadioButtonAndroidPropsandRadioButtonIOSProps(useRadioButtonandRadioButtonProps),RadioButton.Itemno longer takesmode, and the control draws the Material 3 ring and dot on every platform in a 48dp box, soRadioButton.Itemrows grow from 52dp to 64dp. (#5007, guide)List.ItemandList.Accordionuse the Material 3 list sizes, spacing, typography and colors, a pressableList.Itemhas thebuttonrole, andList.Accordionkeeps its header colors when expanded and animates its content. (#5224, guide)MenuandBannerno longer take their background fromtheme.colors.elevation: customizetheme.colors.surfaceContainer(Menu) ortheme.colors.surfaceContainerLow(Banner), or pass the newbackgroundColorprop. (#5121, guide: Menu, Banner)Divideris 1dp thick and no longer takesbold,leftInsetis renamedstartInsetand insets the start edge in both directions, and dividers are hidden from assistive technology by default, sogetByTestIdneeds{ includeHiddenElements: true }. (#5089, guide)Appbar.BackActiondraws its icon with theiconrenderer inPaperProvider'ssettings, so a custom renderer now receivesarrow-leftand adirection, and on iOS it replaces the bundled chevron. (#5325, guide)BottomNavigationandBottomNavigation.Barare removed with their types in favor ofNavigationBar, which renders no scenes (render the active scene yourself, or use it as React Navigation'stabBarto keep screens mounted), passes only the route toonTabPressand is 64dp tall instead of 80dp. (#5006, guide)Only what
react-native-paperexports is public API. Importing Paper's internal files, such as paths underreact-native-paper/lib, isn't supported: they can change in any release, as several did in this one.Also new: NavigationBar, a standalone Material 3 navigation bar with stacked and horizontal tabs, and arrow keys, Home and End between its tabs on web (#5006);
leadingandtrailingslots andselectedanddisabledstates on List.Item, anddisabledon List.Accordion (#5224); abackgroundColorprop on Menu and Banner, whose colors now follow the dynamic themes (#5121); a vertical Divider and a right-to-left awarestartInset(#5089); one Material 3 RadioButton on every platform, with anerrorstate (#5007); Drawer follows the Material 3 navigation drawer, with 28dp insets, an emphasized active label, a themed section divider and dimmed disabled destinations, and its API is unchanged (#5052); FAB.Menu exposes its state and its items to assistive technology, keeps a closed menu's items out of the Tab order, moves between items with the arrow keys, scrolls when taller than the screen and closes with Escape and Android back (#5170); Badge, Checkbox, TextInput and SegmentedButtons animate with the Material 3 motion tokens, and TextInput followsPaperProvider'sreduceMotion(#5112); Button and IconButton share one shape morph, so an outlined IconButton's inner corner no longer overshoots as it springs back (#5292); in Appbar'smediumandlargemodes the title stays below the actions at larger text sizes, so Back takes its press (#5285); on Android 12 and later, a Surface whose background changes between a dynamic theme color and a plain color, as when switching away fromDynamicLightThemeor selecting a Chip, no longer crashes (#5331); on Android with React Native 0.85 and older, aPlatformColorrippleColororbackgroundfalls back to the default ripple instead of crashing (#5332); on web, TouchableRipple paints its hover layer over a background set instyle(#5242), and an operableSwitchno longer rendersaria-readonly(#5240); and the guides fill many migration gaps and list the Reanimated and Worklets versions for each React Native version (#5306, #5307, #5319, #5326, #5335).Known issues:
accessibilityLabel,accessibilityStateandloadingdon't reach the pressable, so a loading button isn't announced as busy (Button: accessibilityLabel, accessibilityState and loading state don't reach the pressable #5216, fix in fix(button): apply accessibility props and loading to the pressable #5225).scrollablecan grow past the screen and its actions overflow it, so they can't be reached (Dialog: at the largest text sizes the dialog grows past the screen and its actions overflow #5297, fix in fix(Dialog): bound dialog height and wrap actions for large text sizes #5302).List.Itemfades a disabled control in its trailing slot a second time, and itsdisableddoesn't reach that control.Menu.Itemtitle touches its leading icon, theDrawer.Sectiontitle inset is too small, theAppbar.Contenttitle sits 12px closer to the back action, aList.Itemin aList.Accordionwith a left icon loses its indent, aDividerwithstartInsetkeeps its inset on the left, and TextInput's supporting text stays on the left (RTL on web: Menu.Item, Drawer.Section, Appbar.Content, List.Item and TextInput use physical spacing #5283, fix in fix(rtl): use logical spacing and alignment on web #5291).adaptNavigationTheme: the navigation theme type it takes and returns still hasstringcolors, so React Navigation themes whose colors are typedColorValue, such as Expo Router 56's, don't type check (Color props typed string reject theme colors, which are ColorValue in 6.x #5179).FAB.Menu,DialogorModalcan end the run with "You are trying toimporta file after the Jest environment has been torn down" after its tests pass, and expanding aList.Accordionlogs anact(...)warning.react-native-paperfails the build (Babel plugin: a namespace or default import of react-native-paper fails the build #5227, fix in fix(babel): stop crashing on namespace and default imports #5266).contentProps={{ style: { paddingBottom: 0 } }}, as the migration guide shows), on web the hover layer is lighter than Material 3's, 0.05 instead of 0.08 (TouchableRipple: on web the hover layer is the content color at 0.05 instead of the M3 0.08 #5308, fix in fix(touchable-ripple): use the MD3 hover opacity on web #5320), and on web an item of an openFAB.Menushows two hover layers, so it looks darker than other hovered items (FAB.Menu: on web, an open menu's items show two hover layers #5334, fix in fix(fab-menu): show one hover layer on web menu items #5338).6.0.0-alpha.5 (2026-12-02)
Bug Fixes
Features
BREAKING CHANGES
BottomNavigationandBottomNavigation.Barare removed withBottomNavigationPropsandBottomNavigationRoute: render the active scene yourself next toNavigationBar, or pass it as React Navigation'stabBarto keep screens mounted.SceneMap,renderScene,onIndexChange,getLazy,shifting, the scene animation props andanimationEasinggo with it,barStylebecomesstyle(static styles only),barTestIDbecomestestIDwith no default,onTabPressandonTabLongPressreceive only the route (nopreventDefault), and the bar is 64dp tall instead of 80dp.Appbar.BackActiondraws its icon with theiconrenderer fromPaperProvider'ssettings, so a custom renderer now receivesarrow-leftand adirectionand, on iOS, replaces the bundled chevron.boldis removed (dividers are 1dp now; passstyle={{ height: StyleSheet.hairlineWidth }}for the old line),leftInsetis renamed tostartInsetand usesmarginStart, and dividers arearia-hiddenby default, sogetByTestIdneeds{ includeHiddenElements: true }. See the migration guide's Divider section.Menu and Banner no longer take their background from
theme.colors.elevation; customizetheme.colors.surfaceContainer(Menu) ortheme.colors.surfaceContainerLow(Banner), or pass the newbackgroundColorprop.List.Item and List.Accordion now use the MD3 list sizes, spacing, typography and colors, a pressable List.Item has the button role, and List.Accordion keeps its colors when expanded and animates its content.
RadioButton.Android,RadioButton.IOSandRadioButtonIOSare removed withRadioButtonAndroidPropsandRadioButtonIOSProps(useRadioButtonandRadioButtonProps),RadioButton.Itemloses itsmodeprop, iOS draws the ring and dot instead of a checkmark, the control takes a 48dp layout box instead of 36dp (RadioButton.Itemrows grow from 52dp to 64dp), and the platform ripple gives way to the state layer unlessrippleColor,backgroundorunderlayColoris passed.Avatar.IconandAvatar.Textdefault toprimaryContainerwithonPrimaryContainercontent and no longer derive the content color from a custombackgroundColor, so pass a matchingcolor(nowColorValue).Avatar.Text,DataTable.Title,DataTable.CellandDataTable.Paginationuse thetitleMedium,labelMedium,bodyMediumandbodySmalltype styles and read those theme fonts instead oftheme.fonts.default, andDataTable.HeaderandDataTable.Rowdraw their borders inoutlineVariant.All reactions