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

0.3.0

Compare
Choose a tag to compare
@Ehesp Ehesp released this 02 Jan 17:34
· 115 commits to master since this release

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.