Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@callstack/repack-plugin-reanimated

Package Overview
Dependencies
Maintainers
15
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@callstack/repack-plugin-reanimated

A plugin for @callstack/repack that integrates react-native-reanimated

latest
Source
npmnpm
Version
5.2.1
Version published
Maintainers
15
Created
Source
Re.Pack logo

A toolkit to build your React Native application with Rspack or Webpack.

mit licence npm downloads Chat PRs Welcome

@callstack/repack-plugin-reanimated is a plugin for @callstack/repack that integrates react-native-reanimated into your React Native projects.

About

This plugin exists in order to simplify the setup required to get react-native-reanimated working with Re.Pack and to minimize the impact on build performance. It looks for relevant keywords like worklet inside the source before transforming the file with babel.

Installation

npm install -D @callstack/repack-plugin-reanimated

Usage

Plugin

To add the plugin to your Re.Pack configuration, update your rspack.config.js or webpack.config.js as follows:

import { ReanimatedPlugin } from '@callstack/repack-plugin-reanimated';

export default (env) => {
  // ...
  return {
    // ...
    plugins: [
      // ...
      new ReanimatedPlugin(),
    ],
  };
};

Loader

The plugin also comes with it's own loader, which you can use on it's own inside rspack.config.js or webpack.config.js like this:

export default (env) => {
  // ...
  return {
    // ...
    module: {
      rules: [
        {
          test: /\.ts$/,
          use: {
            loader: '@callstack/repack-plugin-reanimated/loader',
            options: {
              babelPlugins: [
                [
                  '@babel/plugin-syntax-typescript',
                  { isTSX: false, allowNamespaces: true },
                ],
              ],
            },
          },
        },
      ],
    },
  };
};

Check out our website at https://re-pack.dev for more info and documentation or our GitHub: https://github.com/callstack/repack.

Keywords

repack

FAQs

Package last updated on 15 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts