react-native-reanimated: Error calling RCTDeviceEventEmitter.emit unknown
when I updated react-native-reanimated from version 1.13.1 to 2.0.0-alpha.8 the app stopped working
I got an error message: “Error calling rctdeviceeventemitter.emit unknown”
Screenshots
I followed the installation instructions on the documentation page step by step
Package versions
"dependencies": {
"@react-native-async-storage/async-storage": "^1.13.1",
"@react-native-community/datetimepicker": "^3.0.2",
"@react-native-community/masked-view": "^0.1.10",
"@react-native-community/picker": "^1.6.6",
"@react-navigation/drawer": "^5.9.0",
"@react-navigation/material-bottom-tabs": "^5.2.16",
"@react-navigation/native": "^5.7.3",
"@react-navigation/stack": "^5.9.0",
"dotenv": "^8.2.0",
"moment": "^2.29.1",
"native-base": "^2.13.13",
"react": "16.13.1",
"react-native": "0.63.2",
"react-native-android-location-enabler": "^1.2.1",
"react-native-animated-pagination-dot": "^0.1.8",
"react-native-dotenv": "^2.3.0",
"react-native-geolocation-service": "^5.0.0",
"react-native-gesture-handler": "^1.8.0",
"react-native-google-places-autocomplete": "^1.8.3",
"react-native-image-picker": "^2.3.4",
"react-native-localization": "^2.1.6",
"react-native-localize": "^1.4.1",
"react-native-maps": "0.27.1",
"react-native-modal": "^11.5.6",
"react-native-open-maps": "^0.3.5",
"react-native-paper": "^4.0.1",
"react-native-permissions": "^2.1.5",
"react-native-popup-menu": "^0.15.9",
"react-native-qrcode-scanner": "^1.4.1",
"react-native-reanimated": "^2.0.0-alpha.8",
"react-native-restart": "^0.0.17",
"react-native-safe-area-context": "^3.1.6",
"react-native-screens": "^2.10.1",
"react-native-swiper": "^1.6.0-rc.3",
"react-native-vector-icons": "^7.0.0"
},
- React: 16.13.1
- React Native: 0.63.2
- React Native Reanimated: 2.0.0-alpha.8
- NodeJS: 12.13.1
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (1 by maintainers)
@SohaibKtb it should be also added to babel.config.js: https://docs.swmansion.com/react-native-reanimated/docs/installation#babel-plugin
I just wanna add that I have the same problem with a clean new project aswell:
This occurs on iOS and android. Help.
Having the same issue
My flow to fix was:
babel.config.js
watchman watch-del-all
&&yarn start --reset-cache
This Error still persists @jakub-gonet please can you take a look at this 🥺
Removing related app folder and ModuleCache from derived data solves this problem. Your flow should probably include that clean step anyway: https://stackoverflow.com/questions/58927291/when-can-i-safely-delete-xcode-deriveddata-folder
the same
Just making sure: did you remove all caches?
node_modules/
(rm -rf node_modules
)react-native start --clear-cache
)watchman watch-del-all
)gradle clean
inandroid/
folder)rm -rf Pods/ && pod instal
)xcodebuild
(clean project in xcode)If none of the above commands fixes your problem please provide a reproduction repo so we can investigate it locally. Closing for now as build or config issue; will reopen when we’ll be able to repro it.
@somebody32 I did it also, see the description I provided in the first post
I followed the installation instructions on the documentation page step by step