You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,29 @@ In version **6.x** support for `transitionStyle` property has been dropped. More
37
37
38
38
`yarn add react-native-pager-view`
39
39
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
0 commit comments