Comments (1)
Hi @Rakha112
Is this because I'm updating a sharedValue by directly incrementing it inside useAnimatedStyle ?
Yes, it is. Imagine you want to drag a circle across the screen - then you want this circle to stick as close to your finger as possible. Therefore registering event handler may influence the app behaviour and cause additional animation frames. Because you increment t inside useAnimatedStyle
the animation gets faster.
If you want to see how you can create your animation you can open our example app and look at this example https://github.com/software-mansion/react-native-reanimated/blob/main/app/src/examples/PlanetsExample.tsx
from react-native-reanimated.
Related Issues (20)
- method 'android.view.Window android.app.Activity.getWindow()' on a null object reference HOT 5
- Application crash when using transformOrigin in useAnimatedStyle HOT 5
- Exception in hostFunction : expected 0 args but got 1 HOT 2
- animatedProps doesn't work with Flashlist HOT 5
- react-native-reanimated 3.9.0-rc.1 fails to build on iOS with new architecture enabled in Release build HOT 3
- Unhandled error SIGABRT: Abort program HOT 3
- TypeError: window.matchMedia is not a function HOT 3
- [android] app crash -> JNI DETECTED ERROR IN APPLICATION: java_object == null HOT 3
- RN 0.74.0: error: cannot find symbol super.replaceExistingNonRootView HOT 13
- Compilation Failure in :react-native-reanimated:compileDebugJavaWithJavac (RN 0.74.0) HOT 20
- CellRendererComponent prop does not work with Animated.Flatlist HOT 3
- Animated.View does not update exiting/entering layout animations dynamically HOT 3
- [3.9.0] useAnimatedScrollHandler does not fire events from FlashList onScroll HOT 20
- Application crashes on Android when using entering/exiting HOT 3
- 0x104f2f700 -[REAAnimationsManager clearSharedTransitionConfigForTag:] Thread 1: EXC_BAD_ACCESS (code=1, address=0x10) HOT 24
- 'AsyncQueue.h' file not found after upgrading to "react-native-reanimated": "^3.9.0", HOT 3
- Entering layout animation jump on initial render HOT 3
- `react-native-reanimated/plugin` babel plugin increases the size by 3x HOT 5
- Bug after adding react-native-reanimated in react-native 0.74.0 HOT 3
- Can't build ios with XCode 15.3 after update HOT 7
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.