Skip to content

Releases: testshallpass/react-native-dropdownalert

4.0.2

17 Jun 01:47
Compare
Choose a tag to compare

Changelog

FIXES

  • closeInterval set to 0 would automatically close instantly #202

CHANGES

  • Add data type for onClose/onCancel to typescript. Thanks @allenwei

4.0.1

08 Jun 15:05
Compare
Choose a tag to compare

Changelog

FIXES

  • [Android] Status bar backgroundColor being read-only variable. Thanks @Elvinra

4.0.0

07 Jun 00:39
Compare
Choose a tag to compare

I decided to refactor Dropdownalert to increase test coverage (+18.58%), readability and maintainability. I kept it working as expected with limited breaking changes.

I also want to thank all the contributors, feedback and support. I will help out on any open PRs that have conflicts.

Changelog

BREAKING CHANGES

  • safeAreaStyle becomes contentContainerStyle

FEATURES

  • useAnimationLock prop to prevent alerts colliding with one another during close or open animations.
  • CHANGE type is no longer validated in alertWithType and so if "unknown" type is passed the default styles are used. (i.e. like using "custom" type).
  • height added to state for use withstartDelta and endDelta to keep alert visible.
  • CancelButton component.

CHANGES

  • type, title, and message are no longer state variables. A class instance object called alertData stores this info + payload, action and interval. alertData is returned in onClose or onCancel actions.
  • use closeAction to close alert.
  • render functions return props and alertData.
  • title and message non-strings try to become strings. See: getStringValue
  • props remove from README to it's own document with table of contents.
  • label component renamed to TextView.
  • Reduce timeout usage.

FIXES

  • SafeAreaView and onLayoutEvent being called repetitively causing unnecessary state changes #173

3.11.0

09 May 11:43
Compare
Choose a tag to compare
  • Task: SafeAreaView omit usage for earlier iOS versions (<11) #181 Thanks. @kirillpisarev

3.10.0

24 Mar 19:17
Compare
Choose a tag to compare
  • Feature: Added the ability to pass data (aka payload) to alertWithType function. See example in: #177 and Thanks @rdewolff
  • Enhancement: Add isInteraction boolean prop for use with animation config. Thanks @slorber
  • Enhancement: useNativeDriver prop now defaults to true as before v3.10.0 it only defaulted to true on iOS platform. Thanks @slorber
  • Fix: [Android] StatusBar backgroundColor change #169. Thanks @aqos156

3.9.2

08 Feb 02:51
Compare
Choose a tag to compare
  • Fixed missing React and ReactNode in index.d.ts Thanks @xcarpentier

3.9.1

01 Jan 19:10
Compare
Choose a tag to compare
  • Fix crash when title and message are not passed #163

3.9.0

31 Dec 22:37
Compare
Choose a tag to compare
  • Enhancement: Add typescript definitions #157 Thanks @xcarpentier
  • Task: componentDidMount #160
  • Feature: Add title and message text props #137

3.8.0

15 Dec 04:42
Compare
Choose a tag to compare

Add accessible, accessiblityLabel and testID props. #143 and #139

3.7.2

14 Dec 13:48
Compare
Choose a tag to compare

Pass this.state down with renderImage prop. Thanks @xcarpentier