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,RemovedorFixed.
- Fix Keyboard pushing Toast too much on Android when displayed with position
bottom(#161)
- Add types for
text1NumberOfLinesandtext2NumberOfLines(#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
onPresshandler for custom components
- Fix type declaration file
- Add
onPresstoToast.showmethod - Export
BaseToastcomponent to allow styling - Add
topOffset,bottomOffsetandvisibilityTimeas 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
text1andtext2are rendered conditionally now (#40)
- Custom toast does not hide completely if its
heightis greater than the default 60
- Fix typescript import err
- Render custom toast types using a
configprop - A default
infotype toast onShowandonHidecallbacks when usingToast.show({ onShow, onHide })
autoHideis nowtrueby default
renderSuccessToastandrenderErrorToastprops are no longer relevant, so they were removed
onHideis called when the toast is dismissed by a swipe gesture
- Android status bar has bottom shadow
- Swipe to dismiss gesture