Skip to content

Releases: jeremybarbet/react-native-modalize

2.0.4

25 Jul 10:30
Compare
Choose a tag to compare

👀 Bug Fixes

2.0.3

08 May 08:20
Compare
Choose a tag to compare

👀 Bug Fixes

2.0.0

05 May 09:31
Compare
Choose a tag to compare

Really happy to release this brand new major version for react-native-modalize.

I have been working on it for the last couple of weeks. Many thanks for the people who contributed, opened PR and found issues. High five to @xxsnakerxx for having contributing many times in the last few weeks!

  • I rewrote the package using function component, that makes the library lighter, faster and using the latest React practices.
  • I also rewrote and reorganize most of the documentation to be easier to read, with way more information about the props, methods, usages and more examples.
  • Finally, there was a lot of issues about Modalize not being able to be displayed on top of a bottom tab navigation (e.g. with react-navigation). I released a new package called react-native-portalize to be able to solve this issue. It works with Modalize but can also be useful in other context.

💣 Breaking change

  • The required ref to open or close Modalize is still the same ref={modalizeRef}, modalizeRef.current.open(). However, you won't be able to access scrollTo, scrollToIndex on the content renderer using this ref anymore. You will need to use the new ref contentRef that will give you access to the content methods. contentRef={contentRef}, contentRef.current.getScrollResponder().scrollTo(...). "content" stands for ScrollView, FlatList or SectionList depending the content renderer you are using.

🎉 New features

✨ Improvements

  • Allow alwaysOpen and ajustToContentHeight props to work at the same time #172 (c37ecd5)
  • Simplified and fixed adjustToContentHeight props by @xxsnakerxx (#166) (0c5d908)
  • Recalculate when toggle adjustToContentHeight prop (6fc762d)
  • Basic support for react-native-web (8d98896)
  • Enable horizontal scrolling for ScrollView by @xxsnakerxx (#121) (49ec5ae)
  • Allow alwaysOpen to open to default position (bed354e)
  • scrollTo methods updated for flatList and sectionList by @xxsnakerxx (#126) (038a5ab)

👀 Bug Fixes

  • Check heights of each Header/Footer/Floating components when used with ajustToContentHeight (#149) (7e219c)
  • Prevent overlay press closing alwaysOpen by @jordanl17 (f0eb9b)
  • Avoid onScrollBeginDrag overriding default behavior by @xxsnakerxx (#180) (14f20cb)
  • Make sure animate is enable when closing modalize (df49ca5)
    f1cd77a))
  • Translation check for panGesture value (a46fa43)
  • Cancel translation when ScrollView is not scrolled to the top (a965fbe)
  • Core uses nativeDriver, exposes props for panGestureAnimatedValue only (19bf709)
  • Flickering while scrolling/panning (fe267cd)
  • Pass onLayout if using adjustToContentHeight props (9b52c0e)
  • Rework initial open/close states (534dc69)
  • Take out modalPosition logic out of onPositionChange props check (a478ef1)
  • Hardware back button press handler by [@xxsnakerxx](ht...
Read more

1.3.3

20 Dec 13:56
Compare
Choose a tag to compare

Changed

  • Fix bouncing on opening animation
  • Clean examples from unused functions

1.3.2

20 Dec 13:55
Compare
Choose a tag to compare

Added

  • New argument to the close method to reset to initial position alwaysOpen modal (close('alwaysOpen'))

Changed

  • Fix glitchy issue onAnimateOpen cause by extrapolate: clamp and spring animation

1.3.1

19 Dec 21:10
Compare
Choose a tag to compare

Changed

  • Remove uppercase from options.ts file

1.3.0

19 Dec 15:31
Compare
Choose a tag to compare

Added

  • Dev tools (prettier, commitlint)

Changed

  • BREAKING Move to name import (before) import Modalize from 'react-native-modalize' -> (after) import { Modalize } from 'react-native-modalize'
  • Fix overlay press to dismiss by @Esirei
  • Fix initial state when using alwaysOpen by @benjaminreid
  • Change renovate to keep all changes in same PR
  • Update packages
  • Update examples
  • Rename source files

1.2.2

13 Oct 17:49
Compare
Choose a tag to compare

Changed

  • Fix flickering issue with adjustToContentHeight (a2585c6)
  • Add renovate to keep packages up-to-date (574bded)
  • Upgrade dependencies

1.2.1

02 Aug 09:44
Compare
Choose a tag to compare

Changed

  • Fix issue with hasAbsoluteStyle util (e797829)
  • Fix flickering on swipe gesture (87b422f)
  • Update documentation
  • Add changelog file

1.2.0

30 Jul 22:29
Compare
Choose a tag to compare

Added

  • openAnimationConfig / closeAnimationConfig to control the animations 8b6d6c5
  • modalHeight to set a specific height to the modal 8b6d6c5

Changed

  • BREAKING style props renamed to modalStyle 17a8a3e
  • BREAKING height props renamed to snapPoint 17a8a3e
  • Create utils file to make internal source lighter