Questions tagged [react-native-reanimated-v2]
242 questions
3
votes
3 answers
After installin Reanimated 2 still get the warrning "If you want to use Reanimated 2 then..."
i m trying to use '@react-navigation/top-tabs' but it deppendes on reanimated 2
i installed reanimated 2 but still get the same warrning :
If you want to use Reanimated 2 then go through our installation steps…

Taha Janan Ismail
- 43
- 1
- 6
3
votes
1 answer
How to use diffClamp in reanimated 2?
I am trying to hide and show the header based on the scroll event from reanimated 2 useAnimatedScrollHandler and I need to use the diffClamp so whenever the user scrolls up the header should be shown in less time than the whole scroll event…

Habib Payenda
- 31
- 1
- 3
3
votes
1 answer
What is the better use case of dependencies argument in Reanimated 2 hooks?
I have been reading the documentation reanimated 2 Hooks and searched all the internet for the better explained blog or any code but couldn't find any one , Can anyone please explain and give example with source code .As example
const App = () =>…

Muhammad Mehdi
- 531
- 1
- 5
- 14
3
votes
0 answers
Cannot create array of refs using useAnimatedRef()
Description
Cannot create an array of refs using useAnimatedRef. Below I have mentioned how one can create an array of refs using a traditional useRef but for some reason useAnimatedRef does not recognize arrays. Even when an empty array is placed…

haibert
- 148
- 1
- 12
3
votes
0 answers
TurboModuleRegistry.getEnforcing(...) error in react native
I'm detting this error whenever i try to use drawer navigation
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'NativeReanimated' could not be found. Verify that a module by this name is registered in the native binary.
Invariant…

Aqsa Maan
- 75
- 1
- 10
3
votes
1 answer
React Native android crash ReactNativeReanimated
Hello i have some crash problem when running application in react native 0.63.4
here my crash error
E/ReactNativeJNI: logMarker CREATE_REACT_CONTEXT_END
E/unknown:ReactNative: ReactInstanceManager.createReactContext: mJSIModulePackage not…

Mr-T
- 113
- 12
3
votes
0 answers
React native reanimated v2 Scale + Opacity withRepeat
I am trying to implement scaling View with Opacity togather through React native reanimated v2, but not able to contol withRepeat ...
Below code is just Perform scaling withRepeat but not Opacity. How to control Opacity + Scaling of view withRepeat…

Azhar
- 20,500
- 38
- 146
- 211
2
votes
1 answer
How to sync rendering with react-native-reanimated variable updates?
If you need to simultaneously
update some states such that the UI re-renders
and update some animation variables (useSharedValue, useAnimatedStyle etc.)
what’s the best pattern for this?
I tried the following:
The same code updates the state and…

Jonas Sourlier
- 13,684
- 16
- 77
- 148
2
votes
2 answers
Tried to synchronously call function {w} from a different thread - React Native Reanimated
I have a problem with runOnJS in my swipe function.
All the time Im gets error:
java.lang.RuntimeException: Tried to synchronously call function {w} from a different thread.
Im gets the error in panGesture function when its called…

Kamil Cessak
- 21
- 1
2
votes
0 answers
WithTiming/WithSpring having jitters
I am making a bottom sheet in react-native with the help of react-native-reanimated2 and react-native-Gesture-handler. But when I use withTiming or withSpring it makes the Animated.view jump up and down a tiny bit. Any configurations I should make…

KLK
- 49
- 7
2
votes
1 answer
How to use Reanimated "worklet" directive in ClojureScript?
I am trying to use the react-native-reanimated library in the clojurescript project. And for this library, I have to create worklets by adding the "worklet" directive at the top. ex:
function someWorklet(greeting) {
'worklet';
console.log("Hey…

hrca
- 458
- 3
- 10
2
votes
1 answer
What is the proper way to animate an array of objects with react-native-reanimated, considering a sub-component is not an option?
I am trying to use the react-native-reanimated v2 to animate an array of Animated.Views.
For my case, there are 2 handicaps:
The objects will eventually animate each other. Because of this I am not able to generate a new sub-component for each…

Mehmet Kaplan
- 1,723
- 2
- 20
- 43
2
votes
1 answer
How to implement swipeable in react native gesture handler
I want to implement a swipe to delete feature on flatlist data. I can get the swipe to work, but it only registers after the touch input is lifted. When I start dragging, the card does not initially drag, but it swipes after I lift the input. How…

dirtiersmile
- 21
- 1
- 6
2
votes
0 answers
React native Invariant Violation: Module AppRegistry is not a registered callable module
I'm having this error everytime creating a new app. I copy old package.json form my working project but gives me this error. How to fix it I tryed a lot. It gives error when my App.js is like this
Error
Invariant Violation: Module AppRegistry is not…

gamerdev
- 21
- 1
- 5
2
votes
0 answers
Trying to Pass sharedValue as initalParams get no default value error
I have a sharedValue in my navigator and I would like to pass it to each screen, so every screen has access to the sharedValue and can see when it changes. However when I try to pass it as an initialParam in my TabNavigator it errors out saying "no…

monkeyofgoats123
- 21
- 1
- 1