How can I solve this error?
Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin?

This is my
Код: Выделить всё
babel.config.js
Код: Выделить всё
module.exports = { presets: ['module:metro-react-native-babel-preset'], plugins: ['react-native-reanimated/plugin'], };
Код: Выделить всё
import React, { useRef, useState } from 'react' import { View, useWindowDimensions, Button } from 'react-native' import Animated, { runOnUI } from 'react-native-reanimated'; export default function Login() { const { width, height } = useWindowDimensions(); // const value = useSharedValue(0); function someWorklet(greeting: any) { 'worklet'; console.log("Hey I'm running on the UI thread"); } return ( runOnUI(someWorklet)('Howdy')} /> ); }
Код: Выделить всё
"react-native-reanimated": "^2.1.0"
Источник: https://stackoverflow.com/questions/671 ... nimateds-b