<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Chinwendu Evans </title>
    <description>The latest articles on DEV Community by Chinwendu Evans  (@evadon).</description>
    <link>https://dev.to/evadon</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1026424%2F9c7c7684-de9b-495f-b64d-129ec5ae99a5.png</url>
      <title>DEV Community: Chinwendu Evans </title>
      <link>https://dev.to/evadon</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/evadon"/>
    <language>en</language>
    <item>
      <title>Error: Failed to create a worklet. Did you forget to add Reanimated Babel plugin in babel.config.js?</title>
      <dc:creator>Chinwendu Evans </dc:creator>
      <pubDate>Tue, 24 Oct 2023 05:20:02 +0000</pubDate>
      <link>https://dev.to/evadon/error-failed-to-create-a-worklet-did-you-forget-to-add-reanimated-babel-plugin-in-babelconfigjs-3pin</link>
      <guid>https://dev.to/evadon/error-failed-to-create-a-worklet-did-you-forget-to-add-reanimated-babel-plugin-in-babelconfigjs-3pin</guid>
      <description>&lt;p&gt;If you are trying to implement a React Native Drawer Navigator and encounter the error 'Error: Failed to create a worklet. Did you forget to add Reanimated Babel plugin in babel.config.js?', here is a quick fix for Expo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Error on Web:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dVDH3JIo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vqgpn10hdmauznowne3e.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dVDH3JIo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vqgpn10hdmauznowne3e.PNG" alt="Image of error on web" width="800" height="230"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Error on Mobile&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1ySPGGXl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mbw6nfnzvb84zcj679bs.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1ySPGGXl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mbw6nfnzvb84zcj679bs.jpg" alt="Image of error on mobile" width="800" height="1707"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Solution:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1: Ensure That Reanimated Babel Plugin Is Added to babel.config.js
&lt;/h3&gt;

&lt;p&gt;Note that in &lt;code&gt;babel.config.js&lt;/code&gt;, the &lt;code&gt;react-native-reanimated/plugin&lt;/code&gt; should be added, and it must be the last element in the array.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;module.exports = function (api) {
  api.cache(true);
  return {
    presets: ["babel-preset-expo"],
    plugins: ["react-native-reanimated/plugin"],
  };
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2:Restart Your Expo Server
&lt;/h3&gt;

&lt;p&gt;Stop your Expo server (Ctrl+C), and then run the command below:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;expo r -c&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This will fix the issue. I hope it works for you. Feel free to comment and let me know if it worked for you. Thanks for reading. We can connect on &lt;a href="https://twitter.com/Tizevadon"&gt;X&lt;/a&gt; or &lt;a href="https://www.linkedin.com/in/chinwendu-evans-59b73022b/"&gt;LinkedIn&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>reactnative</category>
      <category>mobile</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
