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
feat(iOS): Add a useLegacy flag to switch between the old/new iOS implementation (#783)
* wip: unsuspicious changes
* wip: unsuspicious changes v2
* FABRIC NEW IMPL -> OLD IMPL
* wip: bring back useLegacy on the RN side
* wip: bring back duplicate types to fix codegen issues
* wip: remove #705 related code for now
* wip: old/new impl division first draft
* wip: old/new impl division continued
* wip: old/new impl v3
* wip: add a `LEGACY_` prefix to all legacy implementation-related symbols
* wip: fix styles for new implementation on Fabric
* wip: move old/new impl into separate folders
* wip: fix old impl fabric symbol names
* wip: xcode changes
* wip: clean up & unify the naming convention
* wip: fix linter issues
* wip: fix styles for new implementation on Paper
* wip: make Fabric example run on another port by default to make it possible to run both examples in parallel
* wip: implement an abstraction over native commands invocations to reduce branching
* refactor: remove the unnecessary value for boolean props
* fix: bump react-native-safe-area-context to a Fabric-enabled version
* feat: bring back & adjust the `bootstrap-fabric` script
* feat: adjust the home screen title depending on the used architecture
* chore: update example/Podfile.lock
* chore: update an Xcode project file after building
* ci: make next branch events trigger ios/android build workflows
* chore: remove commented-out code related to #705 for now
* chore: add legacy implementation explanation comment
* wip: Android fixes
* fix: unnecessary comma in MainActivity.java
* feat: readme makeover
* chore: bump react-native-screens & react-native-gesture-handler in example
* refactor(android): extract module name to shared variable, add comment for context
* chore: remove unnecessary yarn.lock deps
* chore(ios): bring back removed build flags
* chore(ios): remove unnecessary concurrentRootEnabled method
According to React Native Upgrade Helper, this method is to be removed when updating to RN 0.72:
https://react-native-community.github.io/upgrade-helper/?from=0.71.14&to=0.72.0#RnDiffApp-ios-RnDiffApp-AppDelegate.mm
* fix(android): adjust incorrect param type on Fabric
* chore: remove unnecessary tsconfig.json comment
* chore(ios): bring back (currently unused) code related to #712 and #705
This component allows the user to swipe left and right through pages of data. Under the hood it is using the native [Android ViewPager](https://developer.android.com/reference/android/support/v4/view/ViewPager) and the [iOS UIPageViewController](https://developer.apple.com/documentation/uikit/uipageviewcontroller) implementations. [See it in action!](https://github.com/callstack/react-native-pager-view#preview)
11
+
PagerView allows the user to swipe left and right through pages of data.
12
+
It leverages the native [Android ViewPager2](https://developer.android.com/jetpack/androidx/releases/viewpager2)
13
+
and [iOS UIScrollView](https://developer.apple.com/documentation/uikit/uiscrollview) under the hood.
14
+
[See it in action!](https://github.com/callstack/react-native-pager-view#preview)
12
15
13
16
<br/>
14
17
<palign="center">
@@ -17,22 +20,80 @@ This component allows the user to swipe left and right through pages of data. Un
17
20
18
21
<br/>
19
22
20
-
## Versions
23
+
## Getting started
21
24
22
-
| 4.x | 5.x |
23
-
| ---------- | ----------- |
24
-
| iOS | iOS support |
25
-
| ViewPager1 | ViewPager2 |
25
+
Install the library with:
26
26
27
-
## Migration
27
+
```sh
28
+
yarn add react-native-pager-view
29
+
```
28
30
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).
31
+
or:
30
32
31
-
`"@react-native-community/viewpager"` library has been changed to `react-native-pager-view`. Here you can find more information, how to migrate pager view to the latest [version](https://github.com/callstack/react-native-pager-view/blob/master/MIGRATION.md)
33
+
```sh
34
+
npm install react-native-pager-view
35
+
```
32
36
33
-
## Getting started
37
+
## Migration from `@react-native-community/viewpager`
38
+
39
+
The `@react-native-community/viewpager` library has been moved and now lives here, in the `react-native-pager-view` repo.
40
+
[Here](https://github.com/callstack/react-native-pager-view/blob/master/MIGRATION.md) you can find
41
+
more information on how to migrate PagerView to the latest version.
42
+
43
+
## Versions & compatibility
44
+
45
+
The underlying iOS/Android native implementations of PagerView have changed over the years.
46
+
Here's an overview of the implementation details throughout the library's lifespan:
For advanced usage please take a look into our [example project](https://github.com/callstack/react-native-pager-view/blob/master/example/src/BasicPagerViewExample.tsx)
197
+
For advanced usage please take a look into our [example project](https://github.com/callstack/react-native-pager-view/blob/master/example/src/BasicPagerViewExample.tsx).
0 commit comments