Releases: KBLNY/react-native-message-bar
Releases · KBLNY/react-native-message-bar
v1.6.0
v1.5.4
v1.5.3
v1.5.2
v1.5.0
v1.4.2
v1.4.1
v1.4.0
New Features
- New property
position
: To define the position of the alert,top
(default) orbottom
- New property
animationType
: define the way the alert is shown on the view, can beSlideFromTop
(default ifposition
istop
),SlideFromBottom
(default ifposition
isbottom
),SlideFromLeft
,SlideFromRight
. - New property
viewBottomOffset
: Offset of the view from the bottom. That means the alert touch the bottom edge of the screen - New property
viewBottomInset
: Padding Bottom of the view
Bug Fix
- The newer Message Bar alert now replace the current one properly; and it keeps displayed according to its
duration
Deprecated Functions
- MessageBarManager : use
showAlert
instead ofshowCurrentAlert
1.3.0: ## New Features
New Features
- New property
shouldHideAfterDelay
: Tell the MessageBar whether or not it should hide after a delay defined in theduration
property. Iffalse
, the MessageBar remain shown - New property
shouldHideOnTap
: Tell the MessageBar whether or not it should hide or not when the user tap the alert. Iffalse
, the MessageBar will not hide, but theonTapped
function is triggered, if defined. In addition, iffalse
, theonHide
function will not be triggered. The propertyshouldHideAfterDelay
take precedence overshouldHideOnTap
. That means ifshouldHideAfterDelay
isfalse
, the value ofshouldHideOnTap
is not taken into account, since the MessageBar will not ever be hidden - New property
titleNumberOfLines
: Number of lines of the title.0
means unlimited - New property
messageNumberOfLines
: Number of lines of the message.0
means unlimited - New property
titleStyle
: Style of the title - New property
messageStyle
: Style of the message - New property
avatarStyle
: Style of the icon/avatar
Bug Fixes
- When a MessageBar alert is shown it hide the existing one and display a new one, instead of replacing the existing one with its new state (formerly using properties)
Breaking Changes
- Property
type
renamed toalertType
v1.2.0
Show a Message Bar Alert from a child component with the MessageBarManager.
MessageBar supports permanent alert/prevent alert to be hidden after a delay (see shouldHideAfterDelay property)
MessageBar supports permanent alert even when user tap it (see shouldHideOnTap property)
Customization of number of lines for title. 0 for unlimited number of lines
Customization of number of lines for message. 0 for unlimited number of lines
Example updated
Documentation updated