0.3.0 • Published 1 year ago

react-native-reanimated-swc-plugin v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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 versionswc_core versionNext.js version
0.3.00.48.1213.1.2
0.2.00.43.2313.0.5
0.1.00.40.1313.0.0