Skip to content

maxFontSizeMultiplier stopped working with expo sdk 52 #32900

Closed
@hungnd-casso

Description

@hungnd-casso

Minimal reproducible example

https://github.com/hungnd-casso/text-size

What platform(s) does this occur on?

Android, iOS

Where did you reproduce the issue?

in a development build, in Expo Go

Summary

I need this prop to prevent users from customizing the font size on their device to values that do not make sense, which could break my app. Therefore, I have to limit the maximum multiplier to 1.5.
The maxFontSizeMultiplier prop stopped working with "expo": "^52.0.6" and "react-native": "0.76.1", but it still works with "expo": "~51.0.39" and "react-native": "0.74.5".
The prop is still documented and has not been deprecated, as seen here: https://reactnative.dev/docs/text#maxfontsizemultiplier.

Environment

expo-env-info 1.2.1 environment info:
    System:
      OS: Windows 11 10.0.22631
    Binaries:
      Node: 20.17.0 - C:\Program Files\nodejs\node.EXE
      npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    SDKs:
      Android SDK:
        API Levels: 31, 33, 34, 35
        Build Tools: 34.0.0, 35.0.0
        System Images: android-35 | Google Play Intel x86_64 Atom
    IDEs:
      Android Studio: AI-241.18034.62.2412.12266719
    npmPackages:
      expo: ~52.0.6 => 52.0.6
      react: 18.3.1 => 18.3.1
      react-native: 0.76.1 => 0.76.1
    Expo Workflow: bare

Expo Doctor Diagnostics

I just created this repo with "npx create-expo-app@latest" so this failed check is not relevant.
Enabled experimental React Native Directory checks. Unset the EXPO_DOCTOR_ENABLE_DIRECTORY_CHECK environment variable to disable this check.
✔ Check package.json for common issues
✔ Check Expo config for common issues
✔ Check native tooling versions
✔ Check for common project setup issues
✔ Check dependencies for packages that should not be installed directly
✔ Check npm/ yarn versions
✔ Check for issues with Metro config
✔ Check if the project meets version requirements for submission to app stores
✖ Check for app config fields that may not be synced in a non-CNG project
✔ Validate packages against React Native Directory package metadata
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that native modules do not use incompatible support packages
✔ Check for legacy global CLI installed locally
✔ Check that packages match versions required by installed Expo SDK
✔ Check that native modules use compatible support package versions for installed Expo SDK

Detailed check results:

This project contains native project folders but also has native configuration properties in app.json, indicating it is configured to use Prebuild. When the android/ios folders are present, if you don't run prebuild in your build pipeline, the following properties will not be synced: orientation, icon, userInterfaceStyle, splash, ios, android.


One or more checks failed, indicating possible issues with the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalid issue: react-native-coreIssues related to react-native-core don't belong in this repositoryneeds reviewIssue is ready to be reviewed by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions