Repository navigation
Conversation
…e row Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a focused, one-file Android bug fix that redirects switch taps to the existing toggle callback and prevents them from opening the enclosing environment row. It leaves other platforms and the surrounding switch contract unchanged, with no product-default, static-analysis, schema, or sensitive-area changes. You can add or adjust custom eligibility rules. Learn more. |
Contributor
|
🚀 Expo continuous deployment is ready!
|
Member
Author
|
Note 🤖 Claude Opus 5.5 responding on behalf of Theo Closing: this change shipped in #21071, which combined it with the other Android foldable fixes. |
Member
This was referenced Oct 18, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Android, the environment toggles did not toggle. A tap on the switch opened the environment detail view instead. On the detail view, a tap on the switch expanded the row instead.
The Android switch is a Jetpack Compose view inside a row
Pressable. Now an RNPressablearound the switch handles the tap, and the Compose view haspointerEvents="none", so it only draws the switch. The innermostPressablegets the tap, so the row'sonPresscannot run instead of the toggle.This is the shared Android
NativeSwitch, so all Android switches now use this tap path. You can no longer drag the thumb on Android.Testing on emulators (Pixel 8 on API 36, Pixel Fold on API 37, both phone and unfolded layouts):
Reviewed with sol-loop: 1 round with GPT-6.1 Sol. Sol verdict: approved
Made with Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code