Skip to content

Releases: callstack/react-native-paper

Release 2.2.6

21 Nov 10:50
Compare
Choose a tag to compare

Bug Fixes

  • do not pass on elevation as property (#664) (e1b81c2)
  • fix TouchableRipple props types for typescript (#662) (eb153f9)

Release 2.2.5

18 Nov 07:34
Compare
Choose a tag to compare

Bug Fixes

Release 2.2.4

08 Nov 16:27
Compare
Choose a tag to compare

Bug Fixes

  • connect ts declaration with @types/react-native (#627) (a87c1dd)
  • don't pass all props down to Text (a95eb10)
  • flow: merge types with the props of the component used internally (0294209)
  • flow: use exact types when possible (f295272)

Deprecations

Flow types are now exported from the main entry instead of /types. Update your code from:

import type { Theme } from 'react-native-paper/types';

to:

import { type Theme } from 'react-native-paper';

Release 2.2.3

07 Nov 11:39
Compare
Choose a tag to compare

Bug Fixes

  • add a check to ensure Jest doesn't throw error. closes #644 (38b14c1)

Release 2.2.2

06 Nov 14:41
Compare
Choose a tag to compare

Bug Fixes

  • fix textinput not animating on changing error. fixes #611 (e31a33e)

Release 2.2.1

06 Nov 11:14
Compare
Choose a tag to compare

Bug Fixes

  • get version from native modules instead of haste. closes #642 (0f52b7c)

Release 2.2.0

05 Nov 22:26
Compare
Choose a tag to compare

Bug Fixes

  • add RTL support to searchbar(#565) (aed0bfd)
  • add tests for snackbar visibility on mount (8764f60)
  • Always show error outline when including when unfocused (#595) (#598) (0697fb6)
  • change the keyboard appearance according to theme (#593) (124f52f)
  • don't update TextInput content if it's not editable (#608) (56840ee), closes #589
  • fix helper text not shown the first time it's visible (5a51af4)
  • fix Snackbar static constants type for typescript (#609) (2969b1d)
  • grow text input to fill available space. fixes #612 (b980c36)
  • hidden snackbar if initially visible (#621) (a4579bd)
  • make example typescript compatible (#623) (d3d17e7)
  • RadioButton dialog example should use status props. (#592) (ee954e8)
  • TextInput example (accept upperCase and lowerCase letters) (#619) (706c13d)
  • ts declaration of TouchableRipple (#615) (37d9111)
  • fix tab focus animation bug from react-native@~0.57 on Android (627aa90)
  • use new Switch API from RN >= 0.57. fixes #571 (4aa7add)

Features

  • allow List.Accordion to behave as a controlled component (#638) (decbedb), closes #616 #635 #618
  • provide nice error message for users that use Portal without Provider. (#622) (8c13f84)

Release 2.1.3

11 Oct 12:29
Compare
Choose a tag to compare

Bug Fixes

Release 2.1.2

08 Oct 01:29
Compare
Choose a tag to compare

Bug Fixes

  • fix Typescript withTheme return type (#582) (0837f8c)
  • fix small issue in docs (Showcase section). (#581) (4e90562)
  • fix types for component wrapping other components (#579) (0a2349a)

Material Design 2.0 for React Native

06 Sep 20:37
Compare
Choose a tag to compare

We're excited to release the new version of React Native Paper, after more than 3 months of work, thanks to 21 contributors who made 129 commits.

Upgrading

This release includes several breaking changes and redesign of components to match the new material design guidelines. See our migration guide for a list of breaking changes and instructions for upgrading.

Highlights

πŸ’„Material Design 2.0: Components now follow the new material design guidelines, thanks to @gawrysiak, @jaulz, @Trancever, @satya164
πŸ‘“Accessible: We now add accessibility related props automatically whenever it makes sense, thanks to @satya164
πŸ•Œ RTL Support: Various components now support RTL by default, big thanks to @iyadthayyil
πŸ‘·β€β™€οΈNew components: IconButton, Checkbox.Android, Checkbox.IOS, RadioButton.Android, RadioButton.IOS, thanks to @jaulz and @satya164

Bug fixes

  • Support null or false as children in Card - @satya164
  • Support nesting modals - @jaulz
  • Close speed dial on pressing action in FAB.Group - @satya164
  • Remove Chip elevation on iOS - @satya164
  • Fix Portal not rendering components some times - @jaulz
  • Handle empty string in List.Item's description prop - @jaulz
  • Fix Snackbar blocking touch at bottom of the screen - @bosung90, @KevinGulj
  • Prevent focus and blur if TextInput is disabled - @jaulz
  • Remove hardcoded height for Drawer.Item - @lukewalczak
  • Make the whole Searchbar tappable - @ocarreterom
  • Disable TouchableRipple if onPress isn't specified - @jaulz
  • Fix Dialog's border radius to read from the theme - @iyadthayyil
  • Allow Modal's children to grow to fill the content - @fzyzcjy
  • Fix building for React Native Windows and React Native Mac OS - @KevinGulj
  • Pass rest props to Button container for easier testing - @muxe
  • Fix crash in Appbar when subtitle is empty string - @shcheuk
  • Fix components in Portal not being clipped properly - @Trancever

Other improvements

  • Make backdrop themeable with a new colors.backdrop property in theme - @jaulz
  • Add ability to customize active and inactive colors with activeColor and inactiveColor props respectively in BottomNavigation - @satya164
  • Add ability to hide labels with labeled prop in BottomNavigation - @satya164
  • Support using BottomNavigation.SceneMap inside component's render in BottomNavigation - @satya164
  • Add support for disabled FAB - @jaulz
  • Allow styling the FAB.Group container - @satya164
  • Allow styling individual action items in FAB.Group - @tkorakas