react-native-pager-view
react-native-pager-view copied to clipboard
chore: fabric migration
Current State
Only Basic iOS features have been implemented so far
Summary
Add a new arch to the pager library.
Used docs/code examples: https://github.dev/software-mansion/react-native-screens/tree/main/FabricExample https://github.dev/th3rdwave/react-native-safe-area-context https://github.dev/cortinico/RNNewArchitectureApp/tree/ios/20220309
New API: https://github.com/facebook/react-native/blob/8bd3edec88148d0ab1f225d2119435681fbbba33/React/Fabric/Mounting/RCTComponentViewProtocol.h
Discussion: https://github.com/reactwg/react-native-new-architecture/discussions/16
Test Plan
- on iOS
- Install pods using
RCT_NEW_ARCH_ENABLED=1 pod install– this is the same command you run to prepare a Fabric build but you also need to run it after a new native library gets added.
- Install pods using
- on Android
- There are no additional steps required so long you app is configured to build with Fabric – this is typically configured by setting
newArchEnabled=trueingradle.propertiesfile in your project.
- There are no additional steps required so long you app is configured to build with Fabric – this is typically configured by setting
Compatibility
| OS | Implemented |
|---|---|
| iOS | ✅ |
| Android | ✅ |
Checklist
- [ ] iOS: migrate all features to the new arch
- [ ] Android: migrate all features to the new arch
- [ ] Create a legacy fallback
- [ ] Create a separate example for Fabric and Paper arch
TO IMPLEMENT ON iOS
- [ ] LTR
- [ ] overdrag
- [ ] issue with jumping tabs
Any update on this @troZee ? Will the current release of react-native-view-pager still work if I update my project to RN 0.68.X or newer?
@troZee can you publish this in the Alpha/beta version?
@troZee can you publish this in the Alpha/beta version?
https://github.com/callstack/react-native-pager-view/blob/master/README.md#new-architecture-support-fabric
Please let me know, if everything is ok.