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.1.0 #803

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 9, 2023

Bumps react-native-dropdownalert from 4.5.1 to 5.1.0.

Release notes

Sourced from react-native-dropdownalert's releases.

v5.1.0

Changelog

Overview

Introducing the alertPosition prop, it dictates where the alert animation flow begins. It accepts either top or bottom (default: top). To note, if set to bottom then update status bar does not happen and pan responder interaction is adjusted. #234

Breaking change

  • panResponderMoveDistance prop removed in favor of setting onMoveShouldSetPanResponder to panResponderEnabled. This was based on: "Called for every touch move on the View when it is not the responder: does this view want to "claim" touch responsiveness?" for this case yes when enabled (Pan responder lifecycle).

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

... (truncated)

Commits
  • ada10c3 5.1.0
  • a340b77 implement alert position bottom (#302)
  • 0cb8bf9 fix example App test; update example build gradle
  • 7859a38 update example react-native-dropdownalert to 5.0.0
  • 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

You can trigger a rebase of this PR 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
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> dependency will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> dependency will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Aug 9, 2023
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/react-native-dropdownalert-5.1.0 branch from e5b5b2a to 20d8dfd Compare August 21, 2023 05:31
Bumps [react-native-dropdownalert](https://github.com/testshallpass/react-native-dropdownalert) from 4.5.1 to 5.1.0.
- [Release notes](https://github.com/testshallpass/react-native-dropdownalert/releases)
- [Commits](testshallpass/react-native-dropdownalert@v4.5.1...v5.1.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 force-pushed the dependabot/npm_and_yarn/react-native-dropdownalert-5.1.0 branch from 20d8dfd to e7d76ac Compare August 23, 2023 05:11
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