Skip to content

Commit f0ff35c

Browse files
author
Riccardo Cipolleschi
committed
[Fabric] Add Babel plugin and reinstall pods
1 parent 11a9bdd commit f0ff35c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

AwesomeApp/babel.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
module.exports = {
22
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+
]
37
};

RUN.md

+12
Original file line numberDiff line numberDiff line change
@@ -304,3 +304,15 @@ facebook::react::ContextContainer::Shared _contextContainer;
304304
```
305305
* `cmd+b`
306306
* `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`

0 commit comments

Comments
 (0)