Releases: react-native-elements/react-native-elements
2.0.3 Release
Summary
- Lots o bug fixes!
New Props
add textProps prop to Badge: #2395
add Image static methods from RN #2407
add buttonContainerStyle to ButtonGroup #2415
add toggleAction to ToolTip #2406
Fixes
Avatar when round is true: #2247
fix Checkbox no title spacing issue #2397
Icon specific web/font warning #2399
fix ios raised Button issue #2400
Add testID to ListItem::PadView #2404
Stop triggering LayoutAnimation without setting state in SearchBar-ios #2390
add regular font to all android fonts #2402
Header component height issue in android with StatusBar #2405
Have IconObject extend TouchableHighlightProps so that HeaderIcon can support props like underlayColor #2185
fix padding in ListItem for web #2416
2.0.2 Release
Summary
- Fixes
propTypeswarnings from 2.0.1
Fixes
Image source props: #2379 @flyingcircle
Style props fixes: #2375 @arabold
add themeKey to withTheme types: #2303 @ivyhjk
add even to Image onLoad functions: #2314 @danielholmes
2.0.1
Summary
- Supports React Native 62
- Supports React Native Web 0.12
Features
- Add
FontistotoIcontypes. #2361 @shiroze - Allow
PricingCardbutton to take generic component #2332 @flyingcircle
Fixes
- Invalid props.style key
0supplied toImageWarning - #2337 @saxenanihal95 - Fix Android default
Headercrash due toImageBackground- #2199 @25juan - Fix Avatar flickering issue: #2287 @xavier-villelegier
- RTL Fix for tooltip modal: #2340
- Pass event in serachbar
onFocusandonBlur: #2342 @jparksecurity - Remove React PropTypes: #2338 @flyingcircle
- useNativeDriver in Input shake function: #2355 @dquessenberry
v2.0.0
Summary
The first release of 2020 of React Native Elements 🎉 This release primarily works on cleaning up and improving some existing components but needed a major release because of breaking changes. As always we'd love your feedback on some of the new changes.
We also welcome a new core contributor:
- Jeremy Hamilton @flyingcircle
New contributors help so that the project stays alive and updated as members move on to other things in life.
Thanks to everyone who contributed to this release, and stay safe amidst the pandemic 😷
🚨 Breaking Changes
Avatar
overlayContainerStyleis now able to override the borderRadius set on for avatar in rounded mode. If in your app you had set borderRadius or the overflow property on this style, it will now take effect. d72d541 @sudeepto-duttaeditButtonbecomesaccessory.
onEditPressbecomesonAccessoryPress
showEditButtonbecomesshowAccessory
accessorycan now include asourceto show a custom image. #2323 @flyingcircle
Button
- On Android, now has a coloured ripple that matches the text color while on solid, and the primary color while on clear, outline. #2137 @iRoachie. To revert this behaviour, set
background={TouchableNativeFeedback.Ripple(undefined, false)} - When in the loading state,
onPressevents will no longer be triggered. db730c3 @imcvampire
ButtonGroup
- Remove
containerBorderRadiusprop 5f28f0b @Naturalclar- Can use
containerStyleprop instead
- Can use
Icon
- Now uses the different Touchable for Android. TouchableNativeFeedback will be the default on Android. This will affect the Icon as well as components that use it (SearchBar). To get back the previous behaviour, use
TouchableComponent={TouchableHighlight}. b7d28c7 @iRoachieunderlayColoris now set to transparent (previous white). To revert setunderlayColor="white"activeOpacityis now set to 0.3. To revert setactiveOpacity={0.85}
Image
- Image can no longer overflow the container c1690c2 @iRoachie. If you need this behaviour set
containerStyle={{ overflow: 'visible' }}
Input
inputComponentis nowInputComponent16fbb08 @flyingcircle- Fix default styling so that icon lines up along the left side #2116 @ganes1410
Overlay
Removes containerStyle, windowBackgroundColor, overlayBackgroundColor, borderRadius, width, and height props. Initial width and height of overlay are now auto before having set values. 7655a85 @iRoachie
containerStylebecomesbackdropStyle- For
windowBackgroundColor, set backgroundColor onbackdropStyle - For
overlayBackgroundColor, set backgroundColor onoverlayStyle - For
borderRadius, set borderRadius onoverlayStyle - For
widthandheight, set width and height onoverlayStyle
Features
- Support for FontAwesome5 🎉 6cc85af @iRoachie
- General improvements for accessibility, CheckBox 0c03c85, Button 3e567de eff6bb3 @iRoachie
TooltipOverlayNow has aModalComponentprop to allow using a web-compatible modal component for react-native-web. c277ef3 @oxyiiSocialIconAddsiconTypeprop to allow for custom icon vector icon set. d9bfbc9 @flyingcircleButtonGroupaddverticalprop #2326 @flyingcircle
Fixes
ButtonRipple now respects borderRadius 23652ac @iRoachieButtonGroupmarginHorizontalnow works oncontainerStyleadb2973 @oxyiiCheckBoxAllow passing custom testID bac6063 @AsvaroxTooltipFixes issues with inaccurate tooltips with the status bar by adding a new propskipAndroidStatusBar8584917 @oxyiiInputFixes issue with error message changing the display height of the component @saxenanihal95ImageFixes issue with Image not applying style props #2313 @bscaspar
Docs
InputAddonChangeTextexample 5131578 @xAirxInputAdd password example 3caa0ee @morenoh149CheckboxAdd custom Component option totitleprop 4ec03ac @flyingcircleListItemAdd note that it accepts all props fromTouchableHighlightb186e53 @tingzhouuToolTipFix the anchor tags so that they link correctly 6956db2 @adnanirfan- Typos, Grammar 7cfbda6 @adamdune f41beb5 @Baraa95 d14d603 @msal4 951cc83 @dsouzaedison
Other
- Increase test coverage for Tooltip 9fafaf4 @haruelrovix
v1.2.7
v1.2.6
This version's fixes are all typescript related.
IconFixes a types bug withiconStylewhere some users depending on when they installed the lib wouldn't be able to add TextStyle values 1800478 @NaturalclarTileAdd missingoverlayContainerStyleprop to types a9374f1 @atrimn