Skip to content

Releases: marcuzgabriel/reanimated-animation-library

Removing GestureDetector component

31 Jul 10:25
e12b5eb
Compare
Choose a tag to compare

Unfortunately a bug has been observed where the screen freezes when pressing / entering and returning to the overview. This bug is only on iOS.

I have tried everything to debug it. The conclusion is related software-mansion/react-native-reanimated#3331. The new gesture component GestureDetector do not handle on mount very well.

I had three possible solutions:

Reintroduce old working gesture handling solution
Combine old and new RNGH solution and add a prop useLatestRNGH to determine which one to use
Debug and figure out what is the problem
I started with solution 3, which is currently in place (previous version). I removed the defined 'worklet' approach which causes a bad warning as RNGH gets confused on what thread to use. But it worked. The debugging is pure guessing as there is no proper debugging information for worklets when working with the UI thread.

I tried to do solution 2 but it introduces ALOT of extra code and make readability and complexity ALOT more difficult.

*** The only viable solution is 1: remove latest RNGH2.0 and go back to reanimated useAnimatedGestureHandler and wait for RNGH to fix their GestureDetector ***

What's Changed

Full Changelog: v.1.0.7...v.1.0.9

Fixing a bug and adding spring config prop

27 Jul 12:50
Compare
Choose a tag to compare

It is now possible to manipulate the spring config and override default spring config configuration of the BottomSheet.

A bug has been addressed where I intentionally have tried to make the gesture handling events run on the UI thread which caused a freezing behaviour in the app. This approach has been removed.

Full Changelog: v.1.0.6...v.1.0.8

v.1.0.7

08 Jun 10:45
Compare
Choose a tag to compare

Full Changelog: v.1.0.6...v.1.0.7

It is now possible to overrule default spring config with custom configuration. Minor performance improvements has been addressed as well. 🥇

v1.0.6

04 May 15:35
Compare
Choose a tag to compare
  • Updated all packages to latest version
  • Updated react-native-reanimated to 2.6.0
  • Updated react-native-gesture-handler to 2.4.0
  • Integrated RNGH 2.0 API for gesture handling
  • Updated README.md file in alphabetic order and added missing props
  • Added unit tests for all worklets and helper files
  • Added latest jest utils from react-native-reanimated for testing purposes
  • Better scroll-to-top behaviour
  • Refactored code to be aligned with unit tests

Important:
(https://github.com/react-native-svg/react-native-svg/releases/tag/v12.3.0). It has a regression for web. touchableNode is no longer recognizable and setAttribute is therefore no longer callable. This means that [Web] Not possible to interpolate / do SVG morphing with useAnimatedProps and 'react-native-svg' software-mansion/react-native-reanimated#1951 will be introduced again, but this time it has nothing to do with react-native-reanimated.

Other than that seeing some nice cross platform implementation improvements when it comes to RNGH 2.0. 🥳

Full Changelog: v1.0.4...v.1.0.6

v1.0.5

04 May 15:33
0915138
Compare
Choose a tag to compare
Merge pull request #3 from marcuzgabriel/feat/RNGH2.0

Feat: Upgrade to use latest RNGH 2.0 API

v.1.0.4

17 Sep 14:47
Compare
Choose a tag to compare

This release introduces:

  • Removal of setState events while keyboard is visible
  • Improving shared value usage within hooks provided by react-native-reanimated
  • Stronger Typescript with nominator types to avoid duplicating already known and defined types
  • OpenBottomSheetRequest & CloseBottomSheetRequest props. In some use-cases it is needed to externally (without touches) to close or open the BottomSheet
  • ScrollViewKeyboardAvoid component now supports the possibility to connect animated values
  • Better determination of useAnimatedReaction vs useDerivedValue
  • Add Jest test environment that provides support for testing animated components with reanimated Jest utilities
  • Add extra props: isBottomSheetInactive & InitializeBottomSheetAsClosed

v1.0.2

06 Jul 13:01
Compare
Choose a tag to compare

This version introduces a stronger reset behaviour of the BottomSheet. Instead of the resetCardPosition prop acting as bool it is now a function with a callback dependent. This approach ensures a controlled reset behaviour instead of a static. An example can be found in ./src/components/Examples/NoHardRerenderingEffect.tsx. Furthermore, a stronger adaptive logic recalculation of the SnapEffect is introduced. Finally a bug fix is done when importing InputField from the library.

v1.0.1

25 Jun 10:34
Compare
Choose a tag to compare

An animation component library that uses the latest react-native-reanimated v2 hook approach for blazing fast animations. Supports both web and native environments.

Minor to no differences from 1.0.0:

  • Update integration example in description
  • Update prop usage of fadingScrollArrows to be undefined

BottomSheet is now available for all platforms.