Skip to content

Commit 54889be

Browse files
committed
refactor: reword warning
1 parent ef4c636 commit 54889be

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/plugin-reanimated/src/loader.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,13 @@ export function pitch(
9494
if (!warningDisplayed) {
9595
warningDisplayed = true;
9696
logger.warn(
97-
'`@callstack/repack-plugin-reanimated` should not be used with `@callstack/repack/babel-swc-loader`. ' +
98-
'Instead, add the `react-native-reanimated/plugin` (or `react-native-worklets/plugin`) directly to your list of babel plugins in the `babel.config.js` file in the project root.'
97+
'When using `@callstack/repack-plugin-reanimated` together with ' +
98+
'`@callstack/repack/babel-swc-loader` you should turn off the ' +
99+
'transforms for the reanimated plugin via the ' +
100+
'`unstable_disableTransform` option. Instead, please add the ' +
101+
'`react-native-reanimated/plugin` (or ' +
102+
'`react-native-worklets/plugin`) directly to your list of babel ' +
103+
'plugins in the `babel.config.js` file in the project root.'
99104
);
100105
}
101106
}

0 commit comments

Comments
 (0)