Skip to content

Commit 5c832c7

Browse files
Remove the Fabric setup of example - new arch is default now
1 parent 0c23402 commit 5c832c7

File tree

1 file changed

+0
-53
lines changed

1 file changed

+0
-53
lines changed

README.md

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -226,59 +226,6 @@ You can also do this manually by:
226226
- Installing pods for iOS app
227227
- Running example app like always: `npx react-native run-<platform>`
228228

229-
### New architecture setup (Fabric)
230-
231-
In order to use the new architecture some extra steps are needed.
232-
#### iOS
233-
- Install pods with new arch flag inside `example/ios` folder: `RCT_NEW_ARCH_ENABLED=1 pod install`
234-
- Run `npm run example-ios`
235-
236-
#### Android
237-
- Set `newArchEnabled` to true inside `example/android/gradle.properties`
238-
- Run `npm run example-android`
239-
240-
<details>
241-
<summary>
242-
If you are using React Native version lower than 0.70, you need to setup manual linking for Android to work.
243-
</summary>
244-
245-
Inside `example/android/app/src/main/jni/Android.mk` add these lines:
246-
247-
```diff
248-
+ include $(NODE_MODULES_DIR)/@react-native-community/slider/android/build/generated/source/codegen/jni/Android.mk
249-
include $(CLEAR_VARS)
250-
```
251-
252-
```diff
253-
libreact_codegen_rncore \
254-
+ libreact_codegen_ReactSlider \
255-
libreact_debug \
256-
```
257-
258-
Inside `example/android/app/src/main/jni/MainComponentsRegistry.cpp` update these lines:
259-
260-
```diff
261-
#include <react/renderer/components/rncore/ComponentDescriptors.h>
262-
+ #include <react/renderer/components/ReactSlider/ComponentDescriptors.h>
263-
264-
...
265-
266-
MainComponentsRegistry::sharedProviderRegistry() {
267-
auto providerRegistry = CoreComponentsRegistry::sharedProviderRegistry();
268-
269-
// Custom Fabric Components go here. You can register custom
270-
// components coming from your App or from 3rd party libraries here.
271-
//
272-
// providerRegistry->add(concreteComponentDescriptorProvider<
273-
// AocViewerComponentDescriptor>());
274-
+ providerRegistry->add(concreteComponentDescriptorProvider<RNCSliderComponentDescriptor>());
275-
276-
return providerRegistry;
277-
}
278-
```
279-
280-
</details>
281-
282229
## Maintainers
283230

284231
- [Bartosz Klonowski](https://github.com/BartoszKlonowski) - [Callstack](https://callstack.com/)

0 commit comments

Comments
 (0)