AnimatedInterpolation like AnimatedModulo do not call listener #37061
Labels
API: Animated
Needs: Triage 🔍
Newer Patch Available
Stale
There has been a lack of activity on this issue and it may be closed soon.
Description
if you create a new AnimatedValue by applying an AnimatedInterpolation like AnimatedModulo, this new animated value has a function
addListener
, but the listeners are never called.this here describes the problem in react-native-web. I first wrongly assumed that its a react-native-web problem, but as it turns out its already present in react-native
React Native Version
0.71.6
Output of
npx react-native info
System:
OS: macOS 13.3
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 17.13 GB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
Yarn: 3.5.0 - /usr/local/bin/yarn
npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
Watchman: 2023.04.10.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK:
API Levels: 27, 28, 29, 31
Build Tools: 28.0.3, 29.0.2, 29.0.3, 31.0.0
System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9477386
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
see https://codesandbox.io/s/vibrant-lumiere-6p71s1?file=/src/App.js :
only "raw progress" is logged, but not the interpolated version
Snack, code example, screenshot, or link to a repository
https://codesandbox.io/s/vibrant-lumiere-6p71s1?file=/src/App.js
The text was updated successfully, but these errors were encountered: