Skip to content

Commit ad14eb4

Browse files
sota000facebook-github-bot
authored andcommitted
Refine RNTester documentation to disable fabric
Summary: Changelog: [Internal] Update the documentation to disable fabric in RN Tester. RNTester build would fail if you previously built with fabric_enabled. This documentation adds the instruction to clean up before runing pod install. In the future, we'd want to detect and do the clean up so that it doesn't fail in an obscure way. Reviewed By: cortinico, dmitryrykun Differential Revision: D33173173 fbshipit-source-id: a396eb71edc7bf174d0eb392799f45ae74274b76
1 parent 86db62b commit ad14eb4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/rn-tester/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ If you are testing non-fabric component, modify [the fabric_enabled flag in RNTe
1818
fabric_enabled = false
1919
```
2020

21+
Also, if you previously built RNTester with fabric enabled, you might need to clean up the build files and Pods.
22+
```sh
23+
# Clean the generated files and folders to clean install RNTester
24+
cd packages/rn-tester/
25+
rm -rf build/generated/ios
26+
rm -rf Pods
27+
rm Podfile.lock
28+
```
29+
30+
If you are still having a problem after doing the clean up (which can happen if you have built RNTester with older React Native versions where files were generated inside the react-native folder.), the best way might be to clean-install react-native (e.g. remove node_modules and yarn install).
31+
2132
Both macOS and Xcode are required.
2233
- `cd packages/rn-tester`
2334
- Install [Bundler](https://bundler.io/): `gem install bundler`. We use bundler to install the right version of [CocoaPods](https://cocoapods.org/) locally.

0 commit comments

Comments
 (0)