Skip to content

Commit 6f54408

Browse files
okwasniewskitroZeekrozniata
authored
chore: add fabric seciton to docs (#630)
* chore: add fabric seciton to docs * fix: change to yarn instead of npm Co-authored-by: troZee <[email protected]> * fix: add bundle exec prefix to pod install Co-authored-by: troZee <[email protected]> * fix: typo Co-authored-by: Kacper Rożniata <[email protected]> Co-authored-by: troZee <[email protected]> Co-authored-by: Kacper Rożniata <[email protected]>
1 parent bb7ee34 commit 6f54408

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,29 @@ In version **6.x** support for `transitionStyle` property has been dropped. More
3737

3838
`yarn add react-native-pager-view`
3939

40+
## New architecture setup (Fabric)
41+
42+
This library supports new architecture! We have two example folders one for each architecture. If you are using this library in your own project there some extra steps needed.
43+
### iOS
44+
Install pods with this flag inside `ios` folder:
45+
```sh
46+
RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
47+
```
48+
(Inside of `fabricexample` the `RCT_NEW_ARCH_ENABLED` is already set to true by default inside `Podfile`)
49+
50+
### Android
51+
Set `newArchEnabled` to `true` inside `android/gradle.properties` (this flag is already set to true in `fabricexample`) and then run:
52+
```sh
53+
yarn android
54+
```
55+
56+
If you have issues with running android build you can try to generate codegen before the build using this command:
57+
58+
```sh
59+
cd android && ./gradlew generateCodegenArtifactsFromSchema
60+
```
61+
62+
4063
## Linking
4164

4265
### >= 0.60

0 commit comments

Comments
 (0)