Skip to content

Latest commit

 

History

History
118 lines (63 loc) · 4.33 KB

CHANGELOG.md

File metadata and controls

118 lines (63 loc) · 4.33 KB

Changelog

All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

⚠️ The changelog should be human-readable, so everything that's added here should be easy to understand without additional lookups and checks

Headers are one of:

  • Added, Changed, Removed or Fixed.

[1.4.2]

Fixed

  • Fix onPress handler for custom components, fixes #113

[1.4.1]

Fixed

  • Fix type declaration file, fixes #109

[1.4.0]

Added

  • Add onPress to Toast.show method, fixes #86
  • Export BaseToast component to allow styling, fixes #50, #68, #87, #97
  • Add topOffset, bottomOffset and visibilityTime as instance props, fixes #98
  • When shown with position: bottom, Toast is now Keyboard aware, fixes #65

[1.3.7]

Added

Fixed

[1.3.6]

Fixed

  • Custom render props are now part of the initial state. This removes the need to use optional chaining when defining a custom toast config

[1.3.5]

Added

Fixed

  • In case of RTL the text will start from the right (timorss in #84)
  • null is not an object (evaluating 'this._ref.show') #89 (rogerkerse in #90)

[1.3.4]

Fixed

[1.3.3]

Fixed

[1.3.2]

Changed

  • Given texts text1 and text2 are rendered conditionally now (sardok in #40)

Fixed

  • Custom toast does not hide completely if its height is greater than the default 60 (#35)

[1.3.1]

Fixed

  • Fix typescript import err

[1.3.0]

Added

  • Render custom toast types using a config prop
  • A default info type toast
  • onShow and onHide callbacks when using Toast.show({ onShow, onHide })

Changed

  • autoHide is now true by default

Removed

  • renderSuccessToast and renderErrorToast props are no longer relevant, so they were removed

Fixed

  • onHide is called when the toast is dismissed by a swipe gesture

[1.2.3]

Fixed

  • #6 Android status bar has bottom shadow

[1.2.2]

Added

  • Swipe to dismiss gesture