-
Notifications
You must be signed in to change notification settings - Fork 86
Description
What happened?
Description
Google Play Console reports that apps using react-native-ml-kit do not support 16 KB memory page sizes, which may lead to Play Store rejection in future releases.
The app builds and runs successfully, but Play Console flags this library as non-compliant with Android’s 16 KB memory page size requirement for newer devices and upcoming Android versions.
Since react-native-ml-kit includes native code, the library needs to ensure that:
- All native binaries are compatible with 16 KB memory page sizes
- Android NDK / CMake / Gradle configurations comply with Google’s requirements
- Any bundled ML Kit native libraries are updated or rebuilt if necessary
Expected Behavior
Apps using react-native-ml-kit should pass Google Play Console validation and be accepted for submission, including support for 16 KB memory page sizes.
Actual Behavior
Google Play Console displays a warning indicating the app does not support 16 KB memory page sizes, which may result in future rejection.
Environment
- React Native
- Expo
- Android
- react-native-ml-kit
- Google Play Console
Additional Context
Google is enforcing 16 KB memory page size support for apps containing native code to ensure compatibility with newer Android hardware.
Version
@react-native-ml-kit/text-recognition: 1.5.2
Which ML Kit packages do you use?
- @react-native-ml-kit/barcode-scanning
- @react-native-ml-kit/face-detection
- @react-native-ml-kit/identify-languages
- @react-native-ml-kit/image-labeling
- @react-native-ml-kit/text-recognition
- @react-native-ml-kit/translate-text
What platforms are you seeing this issue on?
- Android
- iOS
System Information
System:
OS: macOS 14.5
CPU: (10) arm64 Apple M1 Pro
Memory: 151.14 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 23.6.1
path: /opt/homebrew/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.9.2
path: /opt/homebrew/bin/npm
Watchman:
version: 2025.05.26.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK:
API Levels:
- "36"
Build Tools:
- 35.0.0
- 36.0.0
System Images:
- android-36 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2025.1 AI-251.25410.109.2511.13665796
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 21.0.5
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.81.5
wanted: 0.81.5
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Steps to Reproduce
- Build for android production
- Upload the bundle
- Check if support 16 KB memory page size