npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

expo-eas-ipad-support

v1.0.0

Published

Expo config plugin that fixes iPad apps running in zoomed iPhone compatibility mode (workaround for expo/expo#32344)

Readme

npm version npm downloads license

expo-eas-ipad-support

A build-time Expo config plugin that fixes iPad apps running in zoomed iPhone compatibility mode.

The Problem

Expo's built-in supportsTablet: true setting in app.json is supposed to set UIDeviceFamily = [1, 2] in the final iOS build. Due to a known Expo bug (#32344), the setting doesn't propagate to the built Info.plist, resulting in UIDeviceFamily = [1] (iPhone only). iPad then runs the app in zoomed iPhone compatibility mode instead of at native resolution.

Installation

npx expo install expo-eas-ipad-support

or

npm install expo-eas-ipad-support

Usage

Add the plugin to the plugins array in your app.json or app.config.js. It should be listed before other plugins:

{
  "expo": {
    "plugins": [
      "expo-eas-ipad-support",
      "expo-router",
      ...
    ]
  }
}

Then rebuild via EAS (native config changes require a new build):

eas build --platform ios

How It Works

The plugin applies two patches to the generated native Xcode project during expo prebuild:

  1. Info.plist -- Sets UIDeviceFamily = [1, 2]. This is the key iOS reads at launch to decide whether to run the app natively or in zoomed iPhone compatibility mode.

  2. pbxproj -- Sets TARGETED_DEVICE_FAMILY = "1,2" in the Xcode build settings. This is what Xcode uses during compilation to embed the correct device family into the final binary.

Both are necessary because they serve different purposes in the iOS build pipeline.

When It Runs

The plugin is a build-time hook that runs during expo prebuild (which EAS triggers automatically before compiling). It never runs at app runtime.

eas build --platform ios
  |
  +-- expo prebuild (generates native Xcode project from app.json)
  |     |
  |     +-- Config plugins execute here, in order:
  |           1. expo-eas-ipad-support  <-- patches the generated project
  |           2. expo-router
  |           3. other plugins...
  |     |
  |     +-- Native Xcode project is now on disk with correct settings
  |
  +-- xcodebuild (compiles the patched Xcode project into .app)
  |
  +-- .app artifact uploaded to EAS

Local Verification

Verify without a cloud build:

npx expo prebuild --platform ios --clean

# Check Info.plist
plutil -p ios/<AppName>/Info.plist | grep -A3 UIDeviceFamily

# Check pbxproj
grep TARGETED_DEVICE_FAMILY ios/<AppName>.xcodeproj/project.pbxproj

# Clean up generated native project
rm -rf ios/

Characteristics

  • Pure JavaScript, ~30 lines
  • Only touches the generated throwaway native project (not your source code)
  • Zero runtime overhead
  • No additional dependencies (uses withInfoPlist and withXcodeProject from expo/config-plugins, already a transitive dependency of every Expo project)

License

Apache 2.0 -- see LICENSE for details.