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.
Headers are one of:
Added
,Changed
,Removed
orFixed
.
- Fix
onPress
handler for custom components, fixes #113
- Fix type declaration file, fixes #109
- Add
onPress
toToast.show
method, fixes #86 - Export
BaseToast
component to allow styling, fixes #50, #68, #87, #97 - Add
topOffset
,bottomOffset
andvisibilityTime
as instance props, fixes #98 - When shown with
position: bottom
, Toast is now Keyboard aware, fixes #65
- Allow style prop to style the base component, fixes #92 (akmjenkins in #93)
- Custom render props are now part of the initial state. This removes the need to use optional chaining when defining a custom toast
config
- 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)
position: bottom
, damping value must be grater than 0 error #41 (juliancwirko in #48)
- Custom toast does not hide completely if its
height
is greater than the default 60 (#35)
- Fix typescript import err
- Render custom toast types using a
config
prop - A default
info
type toast onShow
andonHide
callbacks when usingToast.show({ onShow, onHide })
autoHide
is nowtrue
by default
renderSuccessToast
andrenderErrorToast
props are no longer relevant, so they were removed
onHide
is called when the toast is dismissed by a swipe gesture
- #6 Android status bar has bottom shadow
- Swipe to dismiss gesture