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
chore: remove fabric example and migrate to 72 (#730)
* chore: remove fabric example and add old arch support for the example
* Apply fixes
* use JS stack instead of the native one
* change to false
* migrate to 72
* fix lint
* change maestro version
* change android workflow
* Revert "change android workflow"
This reverts commit d42ccec.
* upload artifacts
* record a video
* just a basic example
* turn off new architecture
* update podflie.lock
---------
Co-authored-by: Piotr Trocki <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+18-40Lines changed: 18 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ This component allows the user to swipe left and right through pages of data. Un
20
20
## Versions
21
21
22
22
| 4.x | 5.x and above |
23
-
| ---------- | -----------|
23
+
| ---------- | -------------|
24
24
| iOS | iOS support |
25
25
| ViewPager1 | ViewPager2 |
26
26
@@ -34,29 +34,6 @@ In version **6.x** support for `transitionStyle` property has been dropped. More
34
34
35
35
`yarn add react-native-pager-view`
36
36
37
-
## New architecture setup (Fabric)
38
-
39
-
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.
40
-
### iOS
41
-
Install pods with this flag inside `ios` folder:
42
-
```sh
43
-
RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
44
-
```
45
-
(Inside of `fabricexample` the `RCT_NEW_ARCH_ENABLED` is already set to true by default inside `Podfile`)
46
-
47
-
### Android
48
-
Set `newArchEnabled` to `true` inside `android/gradle.properties` (this flag is already set to true in `fabricexample`) and then run:
49
-
```sh
50
-
yarn android
51
-
```
52
-
53
-
If you have issues with running android build you can try to generate codegen before the build using this command:
54
-
55
-
```sh
56
-
cd android && ./gradlew generateCodegenArtifactsFromSchema
57
-
```
58
-
59
-
60
37
## Linking
61
38
62
39
### >= 0.60
@@ -172,8 +149,8 @@ For advanced usage please take a look into our [example project](https://github.
172
149
|`orientation: Orientation`| Set `horizontal` or `vertical` scrolling orientation (it does **not** work dynamically) | both |
173
150
|`overScrollMode: OverScollMode`| Used to override default value of overScroll mode. Can be `auto`, `always` or `never`. Defaults to `auto`| Android |
174
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 |
175
-
|`overdrag: boolean`|Allows for overscrolling after reaching the end or very beginning or pages. Defaults to `false`| iOS |
176
-
|`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