Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: global.__reanimatedWorkletInit is not a function. #474

Open
BadtzMaru opened this issue Nov 27, 2021 · 4 comments
Open

TypeError: global.__reanimatedWorkletInit is not a function. #474

BadtzMaru opened this issue Nov 27, 2021 · 4 comments

Comments

@BadtzMaru
Copy link

TypeError: global.__reanimatedWorkletInit is not a function. (In 'global.__reanimatedWorkletInit(_f)', 'global.__reanimatedWorkletInit' is undefined)

How to deal with it? Anyone can help me.

"dependencies": {
"expo": "~43.0.2",
"expo-status-bar": "~1.1.0",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "0.64.3",
"react-native-reanimated": "2.1.0",
"react-native-redash": "16.2.2",
"react-native-web": "0.17.1"
},

@BadtzMaru
Copy link
Author

I find a way to solve it.

Add this import "react-native-reanimated"; on the first file line.

@SSOURABH58
Copy link
Contributor

where u exactly add import "react-native-reanimated"; ?? @BadtzMaru

@aerielcruz
Copy link

@SSOURABH58 You can put it anywhere as long as it gets imported before react-native-redash

@Youssef-Durgham
Copy link

fixed by doing that
expo start -c
will fix your error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants