Comments (7)
Okay I have found problem, its terrible with my code and thank to issue #5525, I fix my code I had use
runOnJS(frameCb.setActive)(true)
in a worklet and that terrible, thank support to me @szydlovsky
from react-native-reanimated.
@jameheller98 there is no video 😄
from react-native-reanimated.
@jameheller98 alright, I can see there is some kind of error but I can't really go into detail and investigate without any reproduction. Please refer to how to make a minimal repro.
Your file fix unfortunately doesn't do the job - it breaks the logic of callbackId (stopping and activating callbacks doesn't work anymore because of wrong callbackId).
Other than that, I am also a bit puzzled that your fix contains changes to the code that weren't there yet as of 3.12 (they are present only on main branch and a few recent nightly builds).
from react-native-reanimated.
Hey @jameheller98 I have so many questions. Could you tell us what exactly is the problem? When i tried using your code that you provided, all of our examples using useFrameCallback
stopped working as intended because of your callbackId logic. What exactly do you want us to do?
from react-native-reanimated.
Funfact: if you change autostart
argument in the snack to true (or just remove it), it will work fine
from react-native-reanimated.
This here video example about error:
Uploading screen-20240624-204905~2.mp4…
I have found error when ref.current.callbackId not update in useEffect hook you can check.
from react-native-reanimated.
4623345153037303709.mp4
You can check again.
And file fix you can check
from react-native-reanimated.
Related Issues (20)
- Bad performance if setState while running animation HOT 5
- KeyboardAwareScrollView not figuring style or contentContainerStyle (IOS & Android)
- On web, with React's strict mode, animations don't work on first render HOT 1
- [Vite] [Web] No matching export in RNRenderer.web.js for import "RNRenderer" HOT 6
- No animations on Chromium 73 or older HOT 4
- Setting shared value used in `transform` prop of `useAnimatedStyle` doesn't trigger UI change if assigned on component re-render HOT 5
- Layout Transitions does not work with custom list (FlashList) HOT 4
- Children position does not animate when animating view's width using Layout Animations HOT 2
- useAnimatedStyle does not update Animated.View styles on rerender HOT 4
- CppException: Cannot set property 'startTime' of undefined HOT 7
- Shared Elements: Bugs with Master-Detail, Master-Modal-Detail Flows
- [SET] App freeze due to infinite loop when running transition multiple times HOT 1
- frame drops on reanimated pinch and pan gesture using reanimated on react-native-svg HOT 8
- PhaseScriptExecution fails for Hermes Engine after install of react-native-reanimated HOT 10
- Missing useEvent in mocks HOT 2
- WithDelay of 0ms should not cause any delay HOT 1
- ⭐ [Android] Support 16kb page size for Android 15+ devices HOT 3
- Animation are flickering on IOS when Sentry integration is active HOT 4
- Reanimated Stops Working Completely on iOS HOT 2
- Animation frame drop (flickering animation), reproducible only on real device HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-reanimated.