Releases: callstack/react-native-paper
Release 2.2.6
Release 2.2.5
Release 2.2.4
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
Release 2.2.2
Release 2.2.1
Release 2.2.0
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
Release 2.1.3
Release 2.1.2
Material Design 2.0 for React Native
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
orfalse
aschildren
inCard
- @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
'sdescription
prop - @jaulz - Fix
Snackbar
blocking touch at bottom of the screen - @bosung90, @KevinGulj - Prevent
focus
andblur
ifTextInput
is disabled - @jaulz - Remove hardcoded height for
Drawer.Item
- @lukewalczak - Make the whole
Searchbar
tappable - @ocarreterom - Disable
TouchableRipple
ifonPress
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 newcolors.backdrop
property in theme - @jaulz - Add ability to customize active and inactive colors with
activeColor
andinactiveColor
props respectively inBottomNavigation
- @satya164 - Add ability to hide labels with
labeled
prop inBottomNavigation
- @satya164 - Support using
BottomNavigation.SceneMap
inside component'srender
inBottomNavigation
- @satya164 - Add support for disabled
FAB
- @jaulz - Allow styling the
FAB.Group
container - @satya164 - Allow styling individual action items in
FAB.Group
- @tkorakas