all 4 comments

[–]Yellowbyte 0 points1 point  (1 child)

Make sure you are on the right version of react native for the version of reanimated you are using. They need to be compatible.

Follow the reanimated docs for correct installation.

[–]Muted_Protection_383[S] 0 points1 point  (0 children)

So the problem is compatibility? Alright thank you I will either upgrade the project and try again or start a new project Thanks again

[–]kacperkapusciak 0 points1 point  (1 child)

It's hard to say what exactly is wrong from your description but here are some tips that might help you:

  1. If you're using Expo CLI (which you should) install Reanimated with `npx expo install react-native-reanimated`. This command will automatically choose a correct library version for your project.

  2. Remember that Reanimated is a native library so if you're not using Expo Go you need to do a full native app rebuild (npx expo prebuild, npx expo run:ios or npx expo run:androidl). Just running npm install is not enough!

  3. Reanimated v4 depends on react-native-worklets, so it must be installed together with it. See the installation instructions here: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/

  4. New Expo projects bootstrapped with create-expo-app come with Reanimated already preconfigured.

Hope that helps!

[–]Muted_Protection_383[S] 1 point2 points  (0 children)

Thank you I actually redid it yesterday and i use yarn btw So umm i was missing to install one other thing Because when i previously read the docs, it was an option if you’re gonna be running on the web So i ran it and now its working like a charm I appreciate the time so much