Skip to content

Releases: httnn/react-native-simple-modal

v9.0.1

09 Jun 11:38
Compare
Choose a tag to compare

Changes:

  • fix prop types #48

Thanks @SuhairZain!

v9.0.0

04 Jun 14:11
Compare
Choose a tag to compare

Changes:

  • BREAKING: replace overlayBackground with overlayStyle in order to be able to better customise the style of the overlay (#43 by @franciscofsales)
  • add containerProps and modalProps properties to customise the props of the internal view components (#42 by @SuhairZain)
  • set the offset to the value of offset on initial render (previously it was only updated the the prop changed) (#46 by @bbeckk)

Thanks everyone for the contributions!

v8.0.0

04 Mar 16:09
Compare
Choose a tag to compare

Changes:

  • modalDidOpen and modalDidClose are called more reliably (#38 by @tuanmai)
  • when disableOnBackPress is true, it's only taken into consideration when the modal is open (#39 by @zachrnolan)
  • the component uses the new PropTypes definition format (#32 by @nmjay)

Thanks to everyone for the contributions!

v7.0.0

17 Aug 18:43
Compare
Choose a tag to compare

Changes:

  • use prop-types and add it as a peer dependency

Thanks to @lube for the contribution!

v6.0.0

08 Jun 18:20
Compare
Choose a tag to compare

Changes:

  • use BackHandler instead BackAndroid

Thanks to @farwayer for the contribution!

v5.1.1

16 May 05:39
Compare
Choose a tag to compare

Changes:

  • fix disableOnBackPress behaving incorrectly

v5.1.0

15 May 14:27
Compare
Choose a tag to compare

Changes:

  • fix bug where children wouldn't be rendered on first render if the modal is initially open
  • add disableOnBackPress prop
  • add TypeScript types

thanks to @cenkakin, @ofirgeller and @iyegoroff for the contributions!

5.0.0

14 Mar 19:37
Compare
Choose a tag to compare

Changes:

  • when animationDuration is 0, the modal is not animated at all
  • remove Android backpress listener when unmounting the component

Thanks to @alekseykarpenko and @nadeermalangadan for the contributions!

v4.0.2

11 Jan 15:53
Compare
Choose a tag to compare

Changes:

  • fixes bug where if open was true on first render, the modal didn't open.

thanks to @cenkakin for the fix!

v4.0.1

27 Jul 17:29
Compare
Choose a tag to compare

Changes:

  • fixed overlayBackground prop type (was object, but should've been string)

Thanks to @jpgarcia for this fix!