Questions tagged [react-native-reanimated]
469 questions
14
votes
3 answers
Memory Leak in React Navigation on Android
We are encountering an issue where our React Native Android application crashes on certain devices due to a memory leak. While it works perfectly on most devices, roughly 25% of users have reported this crash. The problem has been tracked via…

Ahmed Imam
- 1,315
- 2
- 19
- 42
10
votes
1 answer
React-native-reanimated executing external native build for cmake
When I install react-native-reanimated in my project after try to run my app it's show me bellow error:
Cause: executing external native build for cmake…

Sagar Kachhadiya
- 1,025
- 2
- 9
- 24
10
votes
5 answers
TypeError: null is not an object (evaluating '_ReanimatedModule.default.createNode')
I am unable to resolve this, and gone through the below document
https://www.npmjs.com/package/react-native-tab-view
Also I did not come across any document regarding this issue. I have used the same sample code mentioned in the above link.
import…

Prajna
- 578
- 4
- 8
- 23
9
votes
5 answers
My React Native App Crash After Update Target Sdk Version 31
My React Native App crashes after update target Sdk version and compileSdkVersion 31. It was working version 30. Google play forced us this update. The app crashes on Android 12 version devices. It works on android 10 or 11.
My package.json file:
{
…

hamzafurkanatmaca
- 157
- 1
- 3
- 9
9
votes
10 answers
TypeError: global.__reanimatedWorkletInit is not a function. (In 'global.__reanimatedWorkletInit(_f)', 'global.__reanimatedWorkletInit' is undefined)
TypeError: global.__reanimatedWorkletInit is not a function. (In 'global.__reanimatedWorkletInit(_f)', 'global.__reanimatedWorkletInit' is undefined)
I am using React Native (not expo). I don't even have reanimated downloaded. I had it downloaded…

toekneema
- 137
- 1
- 2
- 7
9
votes
10 answers
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'NativeReanimated' could not be found
so this is the first time I used Reanimated 2 and unfortunately my App get crashed with the above message. Unable to view my app screen.
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'NativeReanimated' could not be found. Verify that…

سعيد
- 1,547
- 1
- 14
- 32
8
votes
8 answers
Error: Failed to initialize react-native-reanimated library
I was working on a project on react native trying to create drawer navigation
I installed a navigation drawer, gesture handler, and reanimated libraries
and when I run I got an error
1st error :
ERROR Error: Failed to initialize…

Abhiram
- 145
- 1
- 1
- 13
8
votes
4 answers
React-Native-Reanimated: error: node_modules\react-native-reanimated\src\index.ts:
I was making new project and I can't run the android emulator with this error.
It is located at 'node_modules\react-native-reanimated\src\index.ts' and this is just the code there:
// tree-shaken side effects
import…

marceline
- 343
- 2
- 12
8
votes
0 answers
Slide to record animations in react-native like whatsapp / viber
I want to replicate the long press to record and slide left to cancel of whatsapp/viber messengers.
import React, {useRef, useState} from 'react';
import {
Dimensions,
TextInput,
TouchableWithoutFeedback,
View,
PanResponder,
Animated as…

Stathis Ntonas
- 1,222
- 2
- 20
- 49
7
votes
2 answers
How to debug react-native app using reanimated and firebase
native developers. I have been developing and maintaining a react-native app for the past four years now. Now I have come to a point where I no longer know a way to debug my app. I am using recent versions of both react-native-reanimated and…

morganTrudeau
- 81
- 2
7
votes
0 answers
Invariant Violation: `new NativeEventEmitter()` requires a non-null argument
When i work on react native reanimated i faced this error.
ERROR Error: Requiring module "node_modules/@react-navigation/drawer/src/index.tsx", which threw an exception: Invariant Violation: new NativeEventEmitter() requires a non-null argument.,…

Müberra
- 69
- 4
7
votes
0 answers
React native reanimated , application crashs when call setState in callback with withTiming or withSpring
My React native expo application crashing without any error when call function() in withTiming() callback
example :
const whenFinishFunction = () => {
// do some thing
};
const [animationState, setAnimationState] =…

Ahmed5G
- 310
- 2
- 8
6
votes
2 answers
reanimated version problem (couldn't determine the version of the native part of Reanimated.)
I am trying to practive this video.
https://youtu.be/R7vyLItMQJw
(The basics of PinchGestureHandler with React Native Reanimated 2)
but my app doesn't work touch.
I get this Error
[Reanimated] Couldn't determine the version of the native part of…

heejung Kwon
- 61
- 1
- 5
6
votes
1 answer
issue animating the react navigation native stack header
What I want
I'm trying to animate the react navigation native stack header by changing the background from a transparent to a gray color when the user scrolls down. I was reading the documentation and it suggests using the navigation.setOptions to…

Cristian Flórez
- 2,277
- 5
- 29
- 51
6
votes
1 answer
Why react-native-reanimated-carousel does not allow manual swiping?
I am using react-native-reanimated-carousel ^2.5.0 and it does show photos as it should but when I try to swipe left or right it does not do anything, it does not scroll nor shows any errors.
Here are dependencies related to…

showtime
- 1
- 1
- 17
- 48