You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`react-native-streamdown` requires special options to be added to the Worklets Babel plugin config in `babel.config.js`:
45
+
`react-native-streamdown` requires special options to be added to the Worklets Babel plugin config in `babel.config.js`, namely `bundleMode: true` and `workletizableModules: ['remend']`. Your final config could look like this:
46
+
47
+
#### Expo
48
+
49
+
```js
50
+
module.exports=function (api) {
51
+
api.cache(true);
52
+
53
+
return {
54
+
presets: ['babel-preset-expo'],
55
+
plugins: [
56
+
[
57
+
'react-native-worklets/plugin',
58
+
{
59
+
bundleMode:true,
60
+
// other options...
61
+
workletizableModules: ['remend'], // add this line
`react-native-worklets` Bundle Mode generates files on the fly that might not be tracked by Metro in some monorepo setups. It might also shadow your resolving function. If you're running into issues with module resolution, you need to add the following to your `metro.config.js`:
0 commit comments