Skip to content

Conversation

seyedmostafahasani
Copy link

PR Description

This PR adds support for 16 KB memory page size on Android 15+ devices.
To achieve this, the build.gradle file was updated to enable flexible page size support in the native build process by passing the following argument to CMake:

externalNativeBuild { cmake { arguments "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON" } } 

This ensures the React Native app can run correctly on newer Android devices that ship with a 16 KB page size by default.

How to test?

  1. Build and install the app on an Android 15 emulator or device configured with a 16 KB page size.
  2. Verify that the app launches and runs without native crashes related to memory mapping or page alignment.
  3. Optionally, test on devices with 4 KB page size to confirm backward compatibility.

Screenshots

No UI changes.

Copy link

changeset-bot bot commented Sep 12, 2025

⚠️ No Changeset found

Latest commit: 532b1eb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@okwasniewski
Copy link
Collaborator

Hey, thanks for your PR.

Do you think it's necessary to add this? Shouldn't it be handled by React Native?

@seyedmostafahasani
Copy link
Author

Hey, Anytime!
I think it will take a while until React Native implements it, so we can handle it for now since some developers might need it. WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants