Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Releases: invertase/react-native-material-design

0.3.7

27 Jul 07:51
Compare
Choose a tag to compare
  • Fix CheckGroup selected state onSelect callback value.
  • Provide correct "react-native-material-design-styles" git URL in package.json
  • Add support for Exponent #88
  • Fix setting a material color on Avatar component #93
  • Fix label position on RadioButton #96
  • Fix icon scaling in RN 0.3 #97
  • Fix IconToggle badge value being undefined #91

0.3.6

26 May 20:29
Compare
Choose a tag to compare
  • FIxes RN 0.26 deprecation warnings.
  • Fixes an issue on iOS where the Ripple effect expands outside of the container (#63)
  • <Toolbar> now accepts children props if the title prop is not present (7ff4e4c)
  • Fix a iOS bug on the polyfill Ripple (object instance check) (3bd846a)

0.3.5

06 May 15:29
Compare
Choose a tag to compare
  • Fixes an issue with the helpers.js file. Missing/unknown import.

0.3.4

06 May 14:10
Compare
Choose a tag to compare

0.3.3

03 Mar 08:29
Compare
Choose a tag to compare

Fixes an issue with RN 0.21 #34

0.3.2

03 Feb 08:49
Compare
Choose a tag to compare

Improvements

  • Ripple polyfil now handles onPress & onLongPress better, to act natively.
  • IconToggle badge handles 3 digits.
  • Toolbar allows for specific icon styling.
  • Card now takes custom styling.

Additions

  • Core Ripple component added. Wraps polyfill and native ripple handler depending on API version. This is useful when using on apps which needs backwards compatibility.
  • Avatar now takes a text prop, to allow for small amounts of text in the centre of the Avatar.

Minor Breaking Changes

  • The Button value prop has been renamed to text, which is more consistent with other component props. Backwards compatibility for value is present, but you'll get a console warning.

0.3.1

08 Jan 18:01
Compare
Choose a tag to compare
  • Fixed JS bundle issue with React Native 0.18. Thanks @zoontek
  • Icon badge increment animations.
  • Allow toolbar icons to be disabled.

0.3.0

02 Jan 17:34
Compare
Choose a tag to compare

This release comes with many breaking changes, along with many improvements and bug fixes.

Main Changes

Avatar

  • [BREAKING] The src prop has been replaced with an image prop. This takes an Image component to allow local and external sources.

Button

  • The Ripple component has been moved away into a separate polyfill component for backwards compatibility.
  • For compatible devices, TouchableNativeFeedback has been implemented.
  • Now supports a onLongPress function.
  • Fixed some minor text positioning issues.
  • Raised buttons have elevation

Drawer

  • Now supports a themes.
  • Now supports a style prop.
  • [BREAKING] Items are now broken down into an array of objects in a single Section component. This is to allow for better styling configuration.
  • Improved icon & text alignment.
  • Items now support active & disabled states.

Toolbar

  • Added default elevation.
  • Add elevation prop to override default elevation.

IconButton (deprecated)

  • This component has now been replaced with IconToggle.

IconToggle

The IconToggle is a component which wrapper component around an Icon which provides touchable feedback. On press, a circular opaque background is rendered.

  • Takes a badge object, which is positioned at the top right of the container, one tenth the width away from the corner.

Checkbox, RadioButton & Toolbar

  • All now implement IconToggle.

List

  • This has been removed and will be brought it at a later release. It needs refactoring & updating.

Misc. Changes

  • Added an internal isCompatible helper function.
  • Ripple is now a polyfill component, used mainly when TouchableNativeFeedback is not compatible with the SDK version. It has been made public for this convenience.

0.2.1

21 Dec 17:31
Compare
Choose a tag to compare
  • Fixed positioning issues with the latest 1.0.3 release of react native vector icons.
  • Removed peer dependancy from package.json

0.2.0

21 Dec 12:53
Compare
Choose a tag to compare

Updates to the following components:

Button:

  • Allow direct color overrides

Checkbox:

  • Stop ripple effect when disabled

CheckboxGroup:

  • Items in checkbox are now formed via an array being passed
  • Stopped empty selected values being passed on component mount

config.js:

  • Changed “COLOR_NAME” to “PRIMARY_COLORS”

Icon:

  • Default color now #757575 (Slight change via #2)

IconButton

  • Add a counter and counter styling props to be passed in

Card:

  • Updated Action styles to follow MD guidelines
  • Actions now allow ‘left’ & ‘right’
  • Allow Image element to be passed in as media source

Ripple:

  • Fixed an issue where the ripple wouldn’t take up the full child space
  • Change speed of ripple effect based on the child size (more consistent)

RadioButton:

  • Stop ripple effect when disabled

RadioButtonGroup:

  • Items are now formed by passing an array

Toolbar:

  • Allow overrides

New Components

Drawer - Still work in progress, this release allows a basic header and list items with icons.