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 Keyboard pushing Toast too much on Android when displayed with position
bottom
(#161)
- Add types for
text1NumberOfLines
andtext2NumberOfLines
(#152)
- Fix proptype regression (#151)
- Fix type declaration file (#148)
- Remove dependency on ViewPropTypes (#147)
- Move eslint-plugin-prettier to dev dependencies (#135)
- Increase the threshold to register a swipe on the toast container (#144)
- Fix
onPress
handler for custom components
- Fix type declaration file
- Add
onPress
toToast.show
method - Export
BaseToast
component to allow styling - Add
topOffset
,bottomOffset
andvisibilityTime
as instance props - When shown with
position: bottom
, Toast is now Keyboard aware
- Add Typescript declaration file (#94)
- Allow style prop to style the base component (#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
- Allow arbitrary data to be passed into Toasts (#81)
- In case of RTL the text will start from the right (#84)
- null is not an object (evaluating 'this._ref.show') (#90)
- Shadows not visible on Android (#51)
position: bottom
, damping value must be grater than 0 error (#48)
- Given texts
text1
andtext2
are rendered conditionally now (#40)
- Custom toast does not hide completely if its
height
is greater than the default 60
- 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
- Android status bar has bottom shadow
- Swipe to dismiss gesture