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
+17-46Lines changed: 17 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,13 +24,6 @@ This component allows the user to swipe left and right through pages of data. Un
24
24
| iOS | iOS support |
25
25
| ViewPager1 | ViewPager2 |
26
26
27
-
## New architecture support (Fabric)
28
-
29
-
This library supports both architectures (Paper and Fabric). If you would like enable new architecture, please run below command:
30
-
31
-
`yarn add react-native-pager-view@newarch`
32
-
33
-
34
27
## Migration
35
28
36
29
In version **6.x** support for `transitionStyle` property has been dropped. More information [here](https://github.com/callstack/react-native-pager-view/blob/master/MIGRATION.md).
@@ -41,29 +34,6 @@ In version **6.x** support for `transitionStyle` property has been dropped. More
41
34
42
35
`yarn add react-native-pager-view`
43
36
44
-
## New architecture setup (Fabric)
45
-
46
-
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.
47
-
### iOS
48
-
Install pods with this flag inside `ios` folder:
49
-
```sh
50
-
RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
51
-
```
52
-
(Inside of `fabricexample` the `RCT_NEW_ARCH_ENABLED` is already set to true by default inside `Podfile`)
53
-
54
-
### Android
55
-
Set `newArchEnabled` to `true` inside `android/gradle.properties` (this flag is already set to true in `fabricexample`) and then run:
56
-
```sh
57
-
yarn android
58
-
```
59
-
60
-
If you have issues with running android build you can try to generate codegen before the build using this command:
61
-
62
-
```sh
63
-
cd android && ./gradlew generateCodegenArtifactsFromSchema
64
-
```
65
-
66
-
67
37
## Linking
68
38
69
39
### >= 0.60
@@ -179,8 +149,8 @@ For advanced usage please take a look into our [example project](https://github.
179
149
|`orientation: Orientation`| Set `horizontal` or `vertical` scrolling orientation (it does **not** work dynamically) | both |
180
150
|`overScrollMode: OverScollMode`| Used to override default value of overScroll mode. Can be `auto`, `always` or `never`. Defaults to `auto`| Android |
181
151
|`offscreenPageLimit: number`| Set the number of pages that should be retained to either side of the currently visible page(s). Pages beyond this limit will be recreated from the adapter when needed. Defaults to RecyclerView's caching strategy. The given value must either be larger than 0. | Android |
182
-
|`overdrag: boolean`|Allows for overscrolling after reaching the end or very beginning or pages. Defaults to `false`| iOS |
183
-
|`layoutDirection: ('ltr' / 'rtl' / 'locale')`|Specifies layout direction. Use `ltr` or `rtl` to set explicitly or `locale` to deduce from the default language script of a locale. Defaults to `locale`| both|
152
+
|`overdrag: boolean`| Allows for overscrolling after reaching the end or very beginning or pages. Defaults to `false`| iOS |
153
+
|`layoutDirection: ('ltr' / 'rtl' / 'locale')`| Specifies layout direction. Use `ltr` or `rtl` to set explicitly or `locale` to deduce from the default language script of a locale. Defaults to `locale`| both |
0 commit comments