Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Bump react-native-dropdownalert from 4.5.1 to 5.0.0#799

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/react-native-dropdownalert-5.0.0
Closed

Bump react-native-dropdownalert from 4.5.1 to 5.0.0#799
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/react-native-dropdownalert-5.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Aug 1, 2023

Bumps react-native-dropdownalert from 4.5.1 to 5.0.0.

Release notes

Sourced from react-native-dropdownalert's releases.

v5.0.0

Changelog

Overview

<DropdownAlert /> has been refactored to a functional Typescript component. In doing so, there was opportunity to add props, change props and refocus to a single animation flow.

That single animation flow is to start off screen from the top then animate downward onto the screen. This resulted in a decision to remove the complexity behind and usage of the startDelta and endDelta props and where there was logic to keep it on screen.

Moreover, props were added that give more access and control over built-in components. In addition, the children prop was added and this provides the ability to build your own alert (BYOA), for example, <DropdownAlert><Text>{'Alert'}</Text></DropdownAlert>.

Lastly, prop name changes for the most part are to realign them with the associated type and component name. For example, wrapperStyle renamed to animatedViewStyle.

New

  • onDismissAutomatic callback function added and invoked when alert is dismissed by timeout the time can customized with dismissInterval prop or interval data property and defaults to 4000ms.
  • onDismissPanResponder callback function added and invoked when alert is dismissed by pan gesture.
  • onDismissProgrammatic callback function added and invoked when alert is dismissed by dismiss function prop.
  • onDismissCancel callback function added and invoked when alert is cancelled typically when using showCancel prop.
  • onDismissPress callback function added and invoked when alert is dismissed by tapping on alert view.
  • panResponderDismissDistance number added and is the distance on the y-axis the alert needs to travel to be dismissed.
  • animatedViewProps ViewProps added and allows control over props for Animated.View parent component.
  • alertTouchableOpacityProps TouchableOpacityProps added and allows control over props for TouchableOpacity child component.
  • safeViewProps ViewProps added and allows control over props for SafeView child component to TouchableOpacity.
  • textViewProps ViewProps added and allows control over props for View component that holds title and message text components.
  • imageProps ImageProps added and allows control over props for the Image left side child component to TouchableOpacity.
  • cancelTouchableOpacityProps TouchableOpacityProps added and allows control over props for the cancel TouchableOpacity component.
  • cancelImageProps ImageProps added and allows control over props for the cancel Image component.
  • children ReactNode added and if provided are rendered inside the Animated.View instead of the built-in components.
  • springAnimationConfig added and used in Animated.spring().
  • DropdownAlertType enum added.
  • DropdownAlertDismissAction enum added.
  • DropdownAlertColor enum added.
  • DropdownAlertData object type added.
  • DropdownAlertToValue enum added.
  • DropdownAlertImage enum added.
  • DropdownAlertTestID object added.

Changes

  • isOpen state variable removed. This results in the alert always rendered. It's visibility is based on top position of the Animated.View parent component.
  • Removed dependency prop-types.
  • imageSrc, infoImageSrc, warnImageSrc, errorImageSrc, successImageSrc propType changed to ImageSourcePropType.
  • infoColor, warnColor, errorColor, successColor, activeStatusBarBackgroundColor, inactiveStatusBarBackgroundColor propType changed to ColorValue.
  • imageStyle propType changed to ImageStyle.

Breaking changes

  • dropDownAlertRef.alertWithType(...) replaced by alert(data?: DropdownAlertData) promise function prop. payload removed and source is part of data.
  • dropDownAlertRef.closeAction() replaced by dismiss() function prop.

... (truncated)

Commits
  • caa3121 5.0.0
  • f2fe94a Refactor functional typescript component (#301)
  • fc0a750 Merge pull request #275 from testshallpass/dependabot/npm_and_yarn/Example/aj...
  • f00c930 Bump ajv from 6.12.2 to 6.12.6 in /Example
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually

Bumps [react-native-dropdownalert](https://github.com/testshallpass/react-native-dropdownalert) from 4.5.1 to 5.0.0.
- [Release notes](https://github.com/testshallpass/react-native-dropdownalert/releases)
- [Commits](testshallpass/react-native-dropdownalert@v4.5.1...v5.0.0)

---
updated-dependencies:
- dependency-name: react-native-dropdownalert
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Aug 1, 2023
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Aug 9, 2023

Superseded by #803.

@dependabot dependabot Bot closed this Aug 9, 2023
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/react-native-dropdownalert-5.0.0 branch August 9, 2023 03:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants