Commit f0ff35c Riccardo Cipolleschi
committed
1 parent 11a9bdd commit f0ff35c Copy full SHA for f0ff35c
File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
presets : [ 'module:metro-react-native-babel-preset' ] ,
3
+ plugins : [
4
+ '@babel/plugin-proposal-class-properties' ,
5
+ './node_modules/react-native/packages/babel-plugin-codegen'
6
+ ]
3
7
} ;
Original file line number Diff line number Diff line change @@ -304,3 +304,15 @@ facebook::react::ContextContainer::Shared _contextContainer;
304
304
```
305
305
* `cmd+b`
306
306
* `cmd+r`
307
+
308
+ ### [[Fabric] Add Babel plugin and reinstall pods]()
309
+ Steps:
310
+ * Open the `babel.config.js`
311
+ * Add this snippet after the `preset` property:
312
+ ```js
313
+ plugins: [
314
+ ' @babel / plugin- proposal- class - properties' ,
315
+ ' ./ node_modules/ react- native/ packages/ babel- plugin- codegen'
316
+ ]
317
+ ```
318
+ * Run `BUILD_FROM_GIT=1 RCT_NEW_ARCH_ENABLED=1 pod install`
You can’t perform that action at this time.
0 commit comments