Repository navigation
React Native Paper 6.0.0-alpha.4: try it in your app #5284
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.4 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.
What changed since alpha.3 is in the release notes below: nine breaking changes (Dialog takes its parts as props, reduce motion moves to
PaperProvider, the FAB container variants are renamed, Switch, ThemeProvider's types, TextInput's accessibility, Appbar, IconButton's Material 3 Expressive sizes and shapes, andTextInput.Icon'siconSize), clearer screen reader output for TextInput, and right-to-left fixes on web.Known issues: if
npm installfails withERESOLVE, install the Reanimated and Worklets versions that match your React Native first, pinned with~, then Paper. The full list is in the release notes below.Please reply here with what you find, or open an issue with
6.0.0-alpha.4in 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.4 is the fourth 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.Migration guide: https://oss.callstack.com/react-native-paper/6.x/docs/guides/migration
Breaking since 6.0.0-alpha.3:
Dialogno longer renderschildren, andDialog.Icon,Dialog.Title,Dialog.Content,Dialog.ActionsandDialog.ScrollAreaare removed: passicon,title,content,actionsandscrollableinstead. (#5072, guide)theme.animation.scaleis removed: passreduceMotion="on"toPaperProviderto turn Paper's animations off, and read the preference with the newuseReduceMotion()hook. (#5235, guide)tonalPrimary,tonalSecondaryandtonalTertiaryfrom the earlier alphas are renamedprimaryContainer,secondaryContainerandtertiaryContainer, with the same colors and no aliases: in JavaScript, aFAB, aFAB.Extendedor theFAB.Menutrigger with an old name throws at render unless it setscontainerColor. (#5110, guide)Switchis now 48dp tall and its selected icon usesonPrimaryContainer. ASwitchwithoutonValueChangenow renders read-only and logs a warning, so passonValueChange,readOnlyordisabled. (#5222, guide)themeprop ofThemeProvideris typed as a partialTheme, so TypeScript reports values that aren't a theme and keys the theme doesn't have, such asroundness. (#5239, guide)TextInput.Iconwithout a press handler is hidden from assistive technology, and one with a handler needsaria-labeloraccessibilityLabel. A field's supporting text, counter, prefix and suffix now describe it instead of naming it (on Android and iOS they move to its hint). (#5111, guide: icons, supporting text)Appbarrenders its children in the order given (isLeadingno longer moves them),Appbar.Contentalways has a 12dp title margin and no longer takesmode, and aTooltiparound an action no longer gets the bar'stheme. (#5218, guide)IconButton'ssizeis now a named size (extra-smalltoextra-large, withiconSizefor the glyph). Thecontainedandcontained-tonalmodes are renamedfilledandtonal,style.borderRadiusno longer sets the corner (useshape), andselected={false}shows the toggle-off colors.Appbar.ActionandAppbar.BackActionno longer take a numericsize. (#5103, guide)TextInput.Icon'ssizeis renamediconSize, matchingIconButton. (#5262, guide)Also new: IconButton follows Material 3 Expressive, with sizes from
extra-smalltoextra-large, round and square shapes that morph on press, and toggle colors (#5103); Appbar adds the flexible modes andvariantandwidthonAppbar.Action, and its parts read the bar from context (#5218); Dialog takes its parts as props (#5072); auseReduceMotion()hook (#5235), and FAB honoursreduceMotion="off"over the device setting (#5231); PaperProvider merges itsthemeprop deeply (#5234), and ThemeProvider merges onto the theme above it (#5239); TextInput gets the Material 3 state colors and clearer screen reader output (#5111, #5199), places its accessories and label correctly in right-to-left layouts (#5219), and starts its text at the start edge when a suffix is set (#5261); on web, right-to-left text aligns right (#5265) and a LocaleProvider subtree lays out in its own direction (#5255); the Menu scales in on every open (#5232); a collapsed drawer item's indicator expands when it becomes active (#5233); a long press on a FAB shows its Tooltip (#5172); a read-only Switch markedaria-hiddenstays out of the accessibility tree, for switch rows (#5254); and on Android a press that disables a touchable no longer leaves its ripple behind (#5268).Known issues:
ERESOLVEwhen yourreact-native-reanimatedrange lets npm pick a version your React Native orreact-native-workletsdoesn't support, on React Native 0.81 to 0.86 or with^ranges from before Reanimated 4.8. Install the Reanimated and Worklets pair that matches your React Native first, pinned with~(on 0.81 and 0.82:npm install react-native-reanimated@~4.3.0 react-native-worklets@~0.8.1), then Paper. Expo SDK 58 apps aren't affected.mediumandlargemodes, at larger text sizes the title can cover the back action and take its taps (Appbar: inmediumandlargemodes the title covers the back action at larger text sizes #5280). Until it's fixed, cap it withtitleMaxFontSizeMultiplier. At the largest iOS text sizes the title is clipped (Appbar.Content: the title is clipped at the largest accessibility text sizes #5247, fix in fix(appbar): keep the title inside the bar at large text sizes #5273). A pressable title is two focus stops on Android (fix in fix(appbar): make a pressable Appbar.Content title a single focus stop #5270).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).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, 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).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).6.0.0-alpha.4 (2026-11-23)
Bug Fixes
BREAKING CHANGES
sizeis renamediconSize, matching IconButton.sizeis now a named size (extra-smalltoextra-large, withiconSizefor the glyph), thecontainedandcontained-tonalmodes are renamedfilledandtonal,style.borderRadiusno longer sets the corner (useshape),selected={false}shows the toggle-off colors, andAppbar.ActionandAppbar.BackActionno longer take a numericsize.isLeadingno longer reorders),Appbar.Contentalways has a 12dp title margin and loses itsmodeprop, and aTooltiparound an action no longer gets the bar'stheme.TextInput.Iconwithout a press handler is now hidden from assistive technology and one with a handler needsaria-labeloraccessibilityLabel, and a TextInput's supporting text, counter, prefix and suffix are no longer part of its accessible name (on Android and iOS they move to its hint and their text nodes are hidden).themeprop ofThemeProvideris typed as a partialThemeinstead of accepting any value, so TypeScript reports values that aren't a theme and keys the theme doesn't have, such asroundness.tonalPrimary,tonalSecondaryandtonalTertiaryare renamed toprimaryContainer,secondaryContainerandtertiaryContainer, with no aliases.theme.animation.scaleis removed; passreduceMotion="on"toPaperProviderto turn animations off, and read the preference withuseReduceMotion().All reactions