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
+27-24Lines changed: 27 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,6 @@ This library supports both architectures (Paper and Fabric). If you would like e
30
30
31
31
`yarn add react-native-pager-view@newarch`
32
32
33
-
34
33
## Migration
35
34
36
35
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).
@@ -43,27 +42,30 @@ In version **6.x** support for `transitionStyle` property has been dropped. More
43
42
44
43
## New architecture setup (Fabric)
45
44
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.
45
+
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.
46
+
47
47
### iOS
48
-
Install pods with this flag inside `ios` folder:
48
+
49
+
Install pods with this flag inside `ios` folder:
50
+
49
51
```sh
50
52
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
+
```
53
54
54
55
### Android
55
-
Set `newArchEnabled` to `true` inside `android/gradle.properties` (this flag is already set to true in `fabricexample`) and then run:
56
+
57
+
Set `newArchEnabled` to `true` inside `android/gradle.properties` and then run:
58
+
56
59
```sh
57
60
yarn android
58
61
```
59
62
60
-
If you have issues with running android build you can try to generate codegen before the build using this command:
63
+
If you have issues with running android build you can try to generate codegen before the build using this command:
61
64
62
65
```sh
63
66
cd android && ./gradlew generateCodegenArtifactsFromSchema
64
67
```
65
68
66
-
67
69
## Linking
68
70
69
71
### >= 0.60
@@ -179,8 +181,8 @@ For advanced usage please take a look into our [example project](https://github.
179
181
|`orientation: Orientation`| Set `horizontal` or `vertical` scrolling orientation (it does **not** work dynamically) | both |
180
182
|`overScrollMode: OverScollMode`| Used to override default value of overScroll mode. Can be `auto`, `always` or `never`. Defaults to `auto`| Android |
181
183
|`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|
184
+
|`overdrag: boolean`| Allows for overscrolling after reaching the end or very beginning or pages. Defaults to `false`| iOS |
185
+
|`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