Skip to content

Switch component does not turn on with tap on Android, within SectionList #4361

Closed

Description

@chrysb

Current behaviour

I have a Switch component within a SectionList

Tapping on it does not check the switch on Android. I can swipe to turn on the switch. I can tap to disable the switch, just not to turn it on.

By changing your code to use Switch from react-native-gesture-handler, it works.

I will likely just patch this locally, but something y'all should consider fixing.

Your Environment

software version
ios x
android 14
react-native 0.73.4
react-native-paper 5.12.3
node x.x.x
npm or yarn x.x.x
expo sdk ~50.0.7

Activity

  1. gedu commented on Apr 3, 2024

    @gedu
    Contributor

    Hey, can you show some code or provide a snack?
    I tried it and it worked for me

    a_section_item_switch.mp4
  2. vjanssens commented on Apr 2, 2025

    @vjanssens

    By changing your code to use Switch from react-native-gesture-handler, it works.

    Thanks for this tip! It helped me resolve the same issue, even though my Switch was not inside SectionList.

  3. adrcotfas commented on May 28, 2026

    @adrcotfas
    Collaborator

    I wasn't able to reproduce this after #4957. It's not yet released but you can find it on main. Please reopen if the issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions