RORK LABJP
APPLE-AI — Apple opens Foundation Models free to developers under 2M first-time downloads, slashing the cost of adding AI to indie appsSWIFT-API — Foundation Models server-side integration lets you call Claude and Gemini through the same Swift API, now with image inputKOTLIN-MIGRATION — Android Studio's migration agent converts React Native apps into native Kotlin automatically — a future path for Rork-built appsRORK-MAX — Rork Max generates native Swift code ($200/mo), covering iPhone, iPad, Watch, TV, Vision Pro, and iMessageSIMULATOR — A browser-based streaming iOS simulator lets you test on a real Apple environment without Xcode or Mac hardwareSWIFTUI — SwiftUI evolves at WWDC 2026 with reorderable containers, swipe actions for any container, and layouts up to 2x fasterAPPLE-AI — Apple opens Foundation Models free to developers under 2M first-time downloads, slashing the cost of adding AI to indie appsSWIFT-API — Foundation Models server-side integration lets you call Claude and Gemini through the same Swift API, now with image inputKOTLIN-MIGRATION — Android Studio's migration agent converts React Native apps into native Kotlin automatically — a future path for Rork-built appsRORK-MAX — Rork Max generates native Swift code ($200/mo), covering iPhone, iPad, Watch, TV, Vision Pro, and iMessageSIMULATOR — A browser-based streaming iOS simulator lets you test on a real Apple environment without Xcode or Mac hardwareSWIFTUI — SwiftUI evolves at WWDC 2026 with reorderable containers, swipe actions for any container, and layouts up to 2x faster
Articles/Dev Tools
Dev Tools/2026-06-12Intermediate

Android 17 Will Ignore Your Portrait Lock — Getting Rork-Built Expo Apps Ready for Large Screens Ahead of Time

Android 17 stops honoring orientation locks and resizability restrictions on large-screen devices. Here is how I assessed the impact on my Rork-built Expo apps, reworked the layouts, and verified everything with nothing but an emulator.

Rork383Expo61Android 17large screensfoldablestabletsReact Native153

Premium Article

Last week I opened one of my own apps inside a resizable emulator running the Android 17 beta, and what I saw made me pause. A screen I had designed strictly for portrait was stretched across a wide landscape window. The letterboxing — those familiar black bars that used to protect a locked layout — was simply gone.

If you run Android apps as an indie developer, chances are you have relied on the same assumption I did: lock the app to portrait and the layout can never break. Starting with Android 17, expected this summer, that assumption stops holding on large-screen devices.

In this article I walk through what I actually did across six of my production apps built with Rork on the Expo (React Native) stack: judging whether an app is affected, unwinding the orientation lock safely, restructuring layouts around size classes, and verifying the whole thing without buying a single foldable.

What Is Changing — the Slow Death of Orientation Restrictions

Let me summarize the change first. Beginning with Android 16, Google started ignoring the following app-declared restrictions on devices whose shorter side is 600dp or more — tablets, unfolded foldables, and desktop windows:

  • Portrait or landscape locks declared via screenOrientation
  • Resize refusal declared via resizableActivity="false"
  • Declared aspect-ratio minimums and maximums

Android 16 still allowed a temporary opt-out through a compatibility property. Android 17 removes that escape hatch, which is why this release is the real deadline. The question is no longer whether to adapt, only when.

Phones (shorter side under 600dp) keep honoring your locks as before. The scope is strictly large screens — but a foldable is a phone when closed and a tablet when opened, so "we never shipped a tablet version" no longer keeps you out of scope.

A 10-Minute Impact Assessment

Before touching any code, estimate how exposed your app is. I checked three things, in this order:

  1. Look at orientation in app.json. Rork-generated Expo projects default to "orientation": "portrait". If yours says portrait or landscape, you are in scope for the ignored-restrictions behavior
  2. Hunt down fixed-size layout code. Any module that evaluates Dimensions.get("window") once at import time will keep returning stale dimensions after a resize. Run grep -rn "Dimensions.get" src/ and review every hit
  3. Check the device breakdown in Google Play Console. Under statistics by device type, see what share tablets and foldables hold. Across my apps it was 4–7% — small, but these users see larger ad surfaces, and in my AdMob reports their eCPM trends higher than on phones, which makes them an expensive segment to abandon

If both items 1 and 2 apply, doing nothing means real users will see the stretched, broken version of your UI. Conversely, if you already ship with orientation: "default" and dimension-driven layouts, this article mostly reduces to the verification routine at the end.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
A 10-minute check to determine whether your portrait-locked app will be force-resized on Android 17
A size-class design and useWindowDimensions-based implementation that survives unlocking orientation
An emulator-only verification routine for foldables and tablets, plus the 4 fixes it surfaced in my own apps
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Dev Tools2026-06-12
Building a Developer Debug Menu Into Your Rork App — Verify Ads, Purchases, and Remote Config Before Release
A production-safe developer debug menu for Rork apps — switch environments, force test ads, simulate entitlements, and override Remote Config, with working TypeScript code and the pitfalls I hit running six apps.
Dev Tools2026-05-28
Tracking Down BGTaskScheduler.submit Error Code=1 (Unavailable) in Rork iOS Apps
A field-tested checklist for diagnosing BGTaskScheduler.submit failing with Error Code=1 (Unavailable) in iOS apps built with Rork, walking through the six causes that account for nearly every case.
Dev Tools2026-05-25
Fixing Layout Bleed on Android 15 (API 35) in Rork Apps
Once you bump targetSdkVersion to 35, Android 15 enforces edge-to-edge display, and Rork-generated tab bars and headers start sliding under the system bars. Here are the patterns I use with react-native-edge-to-edge and useSafeAreaInsets to fix it properly.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →