khadinakbarlabs/expo-mobile-app-builder/add-android-foldable-tablet

Claude Code and agent skill by khadinakbarlabs/expo-mobile-app-builder

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Optimize Android layout for foldables (Pixel Fold, Galaxy Fold) and tablets using window size classes. Use when the user says 'foldable android', 'tablet layout android', 'large screen android'.

Install

npx vskill@latest install khadinakbarlabs/expo-mobile-app-builder/add-android-foldable-tablet

SKILL.md

Optimize for Foldables + Tablets

Pixel Fold and Galaxy Fold series have inner + outer screens. Tablets have larger UIs. Play features foldable-optimized apps.

Window size classes

Android groups screens into:

  • Compact — phones (<600dp wide)
  • Medium — small tablets, large phones folded (600-840dp)
  • Expanded — tablets, foldables unfolded (>840dp)

In RN/Expo

tsx
import { useWindowDimensions } from 'react-native';
const { width } = useWindowDimensions();
const sizeClass = width < 600 ? 'compact' : width < 840 ? 'medium' : 'expanded';

Layout adaptations

Compact (phone)
  • Bottom navigation (3-5 items)
  • Single column
Medium (tablet portrait)
  • Navigation rail (side)
  • Single column OR 2-pane (list + detail)
Expanded (tablet landscape, foldable open)
  • Navigation drawer (permanent)
  • Multi-pane (list-detail-detail)
tsx
{sizeClass === 'expanded' ? <DrawerLayout /> : <BottomNavLayout />}

Foldable hinge handling

bash
pnpm add react-native-window-size-class # community lib

Or detect foldable state via Posture API (Android 11+):

tsx
// Native code required — drop down via expo-modules-core
// Or use react-native-folding-feature

Layout for Pixel Fold specifically

  • Outer screen: 5.8" 1080×2092
  • Inner screen: 7.6" 2208×1840
  • Aspect changes drastically when unfolding
  • Save user input across hinge state changes (don't dump form state)

Test

  • Pixel Tablet emulator
  • Pixel Fold emulator (Android Studio bundles)
  • Test ALL screens: rotate + unfold

Play featuring

Apps with foldable optimization get bonus points in Play featuring. Make sure:

  • No fixed-orientation lock unless game
  • Layouts adapt smoothly
  • App restores state across orientation/posture change

Pair with

  • apply-material3 (M3 includes responsive guidelines)
  • set-up-emulator (create Fold + Tablet AVDs)

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3
7-day trend score
7

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/khadinakbarlabs/expo-mobile-app-builder/add-android-foldable-tablet/badge)](https://verified-skill.com/skills/khadinakbarlabs/expo-mobile-app-builder/add-android-foldable-tablet)

Something wrong with this skill or its page? Tell us.