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

Web: __reanimatedWorkletInit is not a function, useLegacyImplementation logic was changed since drawer 6.3.2 #11034

Open
2 of 11 tasks
hexadecy opened this issue Nov 26, 2022 · 2 comments

Comments

@hexadecy
Copy link

hexadecy commented Nov 26, 2022

Current behavior

Error: __reanimatedWorkletInit is not a function with expo.

Non-expo:
Drawer doesn't open on the Web since drawer 6.3.2 because of this fix

  • don't force legacy implementation on chrome debugger (94730e0)

Affect drawer v6.3.2 to v6.5.1+

Expected behavior

The drawer should open on the Web

Workaround

Force for the web: useLegacyImplementation={true}
or add at the top of the App.js file: global.__reanimatedWorkletInit = () => {};

Reproduction

https://snack.expo.dev/@mcouillard/react-navigation-11034

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/​bottom-tabs
  • @react-navigation/​drawer
  • @react-navigation/​material-bottom-tabs
  • @react-navigation/​material-top-tabs
  • @react-navigation/​stack
  • @react-navigation/​native-stack

Environment

package version
@react-navigation/native 6.0.14
@react-navigation/drawer 6.5.1
react-native-safe-area-context 4.4.1
react-native-screens 3.18.2
react-native-gesture-handler 2.8.0
react-native-reanimated 2.13.0
react-native 0.70.6
react-native-web. 0.18.19
node 16.18.1
npm 8.19.2
@hexadecy hexadecy added the bug label Nov 26, 2022
@hexadecy hexadecy changed the title Drawer doesn't open on the Web, useLegacyImplementation logic was changed since drawer 6.3.2 __reanimatedWorkletInit is not a function, useLegacyImplementation logic was changed since drawer 6.3.2 Nov 26, 2022
@hexadecy hexadecy changed the title __reanimatedWorkletInit is not a function, useLegacyImplementation logic was changed since drawer 6.3.2 Web: __reanimatedWorkletInit is not a function, useLegacyImplementation logic was changed since drawer 6.3.2 Nov 26, 2022
@AliYar-Khan
Copy link

AliYar-Khan commented Sep 25, 2023

facing same issue with "@react-navigation/drawer": "6.3.1", as well in expo snack android
here https://snack.expo.dev/@aliyark145/glopilot-aliyar-khan?platform=web

@cr7pt0gr4ph7
Copy link

For anyone else stumbling upon this issue: This bug seems to have been fixed since at least "@react-navigation/drawer": "6.6.7" (or probably earlier; haven't tested the other versions). So just update to a later version, and you should be fine.

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

No branches or pull requests

3 participants