Skip to content

Migration guide for 4.0

Mateusz Kosoń edited this page Jul 3, 2020 · 6 revisions

Changes introduced in react-native-paper 4.0 version

Library level changes

The library takes advantage of the React Native 62 improvements, automatically detecting dark/light theme preference, as well as reduce motion accessibility settings and adjusting components appearance accordingly. We also extend theme customization ability, allowing you to add your own custom properties to it.

All of our Examples have been migrated to React Hooks, as we wanted to reflect the way React Native is currently used.

There's also a ton of improvements in types, accessibility and a lot of bug fixes.

New Components

  • TextInput.Affix
  • TextInput.Icon

Component level changes

Snackbar

Bug fixes:

  • add wrapperStyle override to Snackbar

Checkbox

Bug fixes:

  • always display checkbox icon in LTR direction (#1864) (ac3d8ac)

CardTitle

Bug fixes:

  • card title with 1 line only (#1809) (a0b1a3e)

MenuItem

Bug fixes:

  • fix menu item height (#1847) (cc14479)

Button

Bug fixes:

  • fix warning thrown on button animation (#1769) (4b400d6)

FABGroup

Bug fixes:

  • prevent FABGroup click when its hidden (#1845) (8f2a98f)
Clone this wiki locally