react-native-reanimated-swc-plugin

0.3.0 • Public • Published

In order to use the Reanimated's SWC plugin, you need to add it to your .swcrc file:

{
  "jsc": {
    "experimental": {
      "plugins": [
        ["react-native-reanimated-swc-plugin"]
      ]
    }
  }
}

If you're using Next.js, you need to set the plugin in next.config.js instead:

module.exports = {
  experimental: {
    swcPlugins: [['react-native-reanimated-swc-plugin']],
  },
};

Below is a table showing compatibility of the plugin. Please note that swc_core version refers to the version of the swc_core crate that the plugin has been compiled against. The last column is the version of Next.js with that version of swc_core crate included.

Plugin version swc_core version Next.js version
0.3.0 0.48.12 13.1.2
0.2.0 0.43.23 13.0.5
0.1.0 0.40.13 13.0.0

Package Sidebar

Install

npm i react-native-reanimated-swc-plugin

Weekly Downloads

245

Version

0.3.0

License

MIT

Unpacked Size

5.11 MB

Total Files

18

Last publish

Collaborators

  • jakub.piasecki