Skip to content

Conversation

juancamiloqhz
Copy link

Description:

Fix invisible Switch thumb on native by replacing the size-4 utility with explicit h-4 w-4 on the Thumb. On native, size-* wasn’t applied, resulting in a 0×0 thumb. No API changes; visual parity on Web.

Fixes issue: N/A

Tested Platforms:

  • iOS
  • Android
  • Web

Affected Apps/Packages:

  • apps/docs
  • apps/showcase
  • apps/cli
  • packages/registry

Screenshots:

  • Before: thumb not visible; track renders
  • After: thumb visible and animates correctly

Notes:

  • Root cause: the size-4 utility wasn’t translated to native width/height, producing a zero-sized thumb. Using h-4 w-4 fixes it across themes.
  • No breaking changes; theming and track colors unchanged. Web unaffected.
  • Tested with Expo/React Native; please confirm on Android and Web if needed.

Copy link

vercel bot commented Sep 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
react-native-reusables Ready Ready Preview Comment Sep 7, 2025 5:41pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant