Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cd ios && pod install

## Compatibility

We support the three latest React Native versions: **0.86**, **0.87** and **0.88**. Only the New Architecture is supported.
We support the three latest React Native versions: **0.87**, **0.88** and **0.89**. Only the New Architecture is supported.

## Usage

Expand Down
225 changes: 158 additions & 67 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/docs/docs/getting-started/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cd ios && pod install

## Compatibility

We support the three latest React Native versions: **0.86**, **0.87** and **0.88**.
We support the three latest React Native versions: **0.87**, **0.88** and **0.89**.

:::warning New Architecture only
Since 7.x, `react-native-pager-view` supports only the [New Architecture](https://reactnative.dev/architecture/landing-page). If your app still runs on the old architecture, use 6.x.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.pagerviewexample

import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
import com.facebook.react.defaults.DefaultReactActivityDelegate

class MainActivity : ReactActivity() {
Expand All @@ -13,10 +12,6 @@ class MainActivity : ReactActivity() {
*/
override fun getMainComponentName(): String = "PagerViewExample"

/**
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
*/
override fun createReactActivityDelegate(): ReactActivityDelegate =
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
DefaultReactActivityDelegate(this, mainComponentName)
}
6 changes: 3 additions & 3 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ buildscript {
buildToolsVersion = "37.0.0"
minSdkVersion = 24
compileSdkVersion = 37
targetSdkVersion = 36
ndkVersion = "27.1.12297006"
kotlinVersion = "2.2.0"
targetSdkVersion = 37
ndkVersion = "28.2.13676358"
kotlinVersion = "2.3.21"
}
repositories {
google()
Expand Down
4 changes: 3 additions & 1 deletion example/ios/PagerViewExample/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
</array>
</dict>
</dict>
<key>RCTUseAssetCatalog</key>
<true/>
Comment on lines +66 to +67

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Minor · RCTUseAssetCatalog enabled in an app that has no asset catalog

RCTUseAssetCatalog is enabled but the app has no .xcassets or ASSETCATALOG_COMPILER_* build setting, so plain Metro-bundled JS assets like require('../../assets/tabView/album-art-1.jpg') can stop rendering in the Coverflow and TabView examples and e2e screenshots. The flag switches asset resolution to the catalog-backed path while no catalog exists.

Suggested change

Either add Assets.xcassets and the ASSETCATALOG_COMPILER build settings (as the RN template does), or drop RCTUseAssetCatalog from the example Info.plist until the catalog exists; if the flag is intentionally opt-in for this app, say so in the PR.

Details

persona: senior-developer, jvm

Useful? Reply @apex-sentinel-staging like, or @apex-sentinel-staging dislike <why> if it is not.

Reply @apex-sentinel-staging note ... to add context, or @apex-sentinel-staging pivot ... if it is wrong — I will re-check the cited code.

<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
Expand All @@ -81,6 +83,6 @@
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<true/>
</dict>
</plist>
Loading
Loading