Skip to content

fix(mobile): Android connection switches toggle on the first tap - #100

Open
CreatorGhost wants to merge 1 commit into
devfrom
viewcode/android-switch-taps
Open

CreatorGhost wants to merge 1 commit into
devfrom
viewcode/android-switch-taps

Conversation

@CreatorGhost

Copy link
Copy Markdown
Owner

On Android, the environment on/off switch needed several taps. It sat inside the row's Pressable; once that Pressable becomes the JS responder, its native view intercepts the finger's move events, so the Compose switch gets ACTION_CANCEL and the tap opens details instead.

The switch now sits beside the row's Pressable (label area and chevron still open details / expand). The Add Project "Create private repository on GitHub" switch had the same nesting and gets the same fix.

Tested on the Android emulator with real-finger taps (small swipe): before, 0/10 taps toggled; after, 20/20 on the list and 12/12 on the details screen, with no accidental navigation.

The environment switch sat inside the row's Pressable. On Android, once the
Pressable becomes the JS responder its native view intercepts move events, so
the Compose switch got cancelled and the tap opened details instead. The switch
now sits beside the row's Pressable. Same fix for the Add Project GitHub switch.
@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
viewcode-site Error Error Oct 20, 2026 10:18pm UTC

@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Path: .coderabbit.config.ts
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7062e99e-8193-4fab-8742-e7addcb7e579
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Oct 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for ad89775.

This comment will update automatically after the next completed run.

This branch had an error being deployed

1 failed deployment
Preview — ad89775c Deployed Oct 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant